empty label height bug

40 views
Skip to first unread message
Assigned to halab...@google.com by taifu...@gmail.com

Taifun

unread,
Feb 13, 2014, 2:36:32 PM2/13/14
to mitappinv...@googlegroups.com
set screen to scrollable = false
and define 2 labels
label1: height= automatic
label2: height= fill parent

everything fine up to now
then delete the text in label1 and the height will change to fill parent in the designer window

example project attached
after building the app there is an empty line now instead of "nothing"
Taifun


label_bug.aia
label_bug.apk

Scott Ferguson

unread,
Feb 17, 2014, 10:28:05 AM2/17/14
to mitappinv...@googlegroups.com
I have tested different scenarios:

height of 1 pixel, 0 pixels, fill parent, automatic and they all seem to work properly for me.
If normal behavior is for an empty label set to automatic to take up x pixels in height then nothing is wrong here.
You can set Label1's Visible to false or Height to 0 to get the desired effect you are suggesting, I think.
---
Scott

Taifun

unread,
Feb 17, 2014, 11:24:50 AM2/17/14
to
the height of an empty label (height = automatic) in AI1 was 0, in AI2 not anymore
of course we can say it's not a bug, it's a feature... ;-)

however the normal user will be confused to see in the designer an empty label (height = automatic) acting as fill parent (see first screenshot)...
Taifun

Hal Abelson

unread,
Feb 20, 2014, 6:59:36 PM2/20/14
to mitappinv...@googlegroups.com
Filed as ticket 716
Reply all
Reply to author
Forward
0 new messages