whitespace remove

This commit is contained in:
Vadim Lopatin 2015-03-25 08:43:05 +03:00
parent 5eec0f91cf
commit b2be31ac9f
1 changed files with 5 additions and 5 deletions

View File

@ -134,11 +134,11 @@ class TextWidget : Widget {
applyAlign(rc, sz); applyAlign(rc, sz);
font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags); font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags);
} else { } else {
SimpleTextFormatter fmt; SimpleTextFormatter fmt;
Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags); Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags);
applyAlign(rc, sz); applyAlign(rc, sz);
// TODO: apply align to alignment lines // TODO: apply align to alignment lines
fmt.draw(buf, rc.left, rc.top, font, textColor); fmt.draw(buf, rc.left, rc.top, font, textColor);
} }
} }
} }
@ -178,10 +178,10 @@ class ImageWidget : Widget {
@property string drawableId() { return _drawableId; } @property string drawableId() { return _drawableId; }
/// set drawable image id /// set drawable image id
@property ImageWidget drawableId(string id) { @property ImageWidget drawableId(string id) {
_drawableId = id; _drawableId = id;
_drawable.clear(); _drawable.clear();
requestLayout(); requestLayout();
return this; return this;
} }
/// get drawable /// get drawable
@property ref DrawableRef drawable() { @property ref DrawableRef drawable() {