Placeholders show up again

This commit is contained in:
Sasha Koshka 2023-01-18 01:20:04 -05:00
parent 2bf2baf69e
commit 3ef13955be
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ func (element *TextBox) draw () {
innerBounds.Max.X -= theme.Padding()
innerBounds.Max.Y -= theme.Padding()
if element.text == nil && !element.selected {
if len(element.text) == 0 && !element.selected {
// draw placeholder
textBounds := element.placeholderDrawer.LayoutBounds()
offset := image.Point {