Placeholders show up again
This commit is contained in:
parent
2bf2baf69e
commit
3ef13955be
@ -198,7 +198,7 @@ func (element *TextBox) draw () {
|
|||||||
innerBounds.Max.X -= theme.Padding()
|
innerBounds.Max.X -= theme.Padding()
|
||||||
innerBounds.Max.Y -= theme.Padding()
|
innerBounds.Max.Y -= theme.Padding()
|
||||||
|
|
||||||
if element.text == nil && !element.selected {
|
if len(element.text) == 0 && !element.selected {
|
||||||
// draw placeholder
|
// draw placeholder
|
||||||
textBounds := element.placeholderDrawer.LayoutBounds()
|
textBounds := element.placeholderDrawer.LayoutBounds()
|
||||||
offset := image.Point {
|
offset := image.Point {
|
||||||
|
Reference in New Issue
Block a user