mirror of https://github.com/buggins/dlangui.git
whitespace remove
This commit is contained in:
parent
5eec0f91cf
commit
b2be31ac9f
|
@ -134,11 +134,11 @@ class TextWidget : Widget {
|
|||
applyAlign(rc, sz);
|
||||
font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags);
|
||||
} else {
|
||||
SimpleTextFormatter fmt;
|
||||
Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags);
|
||||
SimpleTextFormatter fmt;
|
||||
Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags);
|
||||
applyAlign(rc, sz);
|
||||
// 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; }
|
||||
/// set drawable image id
|
||||
@property ImageWidget drawableId(string id) {
|
||||
_drawableId = id;
|
||||
_drawableId = id;
|
||||
_drawable.clear();
|
||||
requestLayout();
|
||||
return this;
|
||||
return this;
|
||||
}
|
||||
/// get drawable
|
||||
@property ref DrawableRef drawable() {
|
||||
|
|
Loading…
Reference in New Issue