LabelPosition
LabelPosition
I'm building a responsive app and I'd like to move a field's label from the left to the top but this doesn't reflow as I expect - the label just vanishes (I assume hidden by the field above) and the edit portion stays where it is. Is there a way to achieve this effect.
-
davidbalansa
- Posts: 92
- Joined: Mon Feb 01, 2016 10:08 am
Re: LabelPosition
Did you increase the height of the field and set the MarginTop property to provide space for the caption to show?
If It is being hidden by the field above you really should be using a Layout Manager like the Table Layout to control the positioning of your fields.
David
If It is being hidden by the field above you really should be using a Layout Manager like the Table Layout to control the positioning of your fields.
David
Re: LabelPosition
I'm using a layout manager with all the items aligned top left, flow down. In the IDE when I change the position of the label from left to top the height is automatically calculated and the whole field shifts to the left. In the web this doesn't happen. Even if I, in code, changed the height of the control it still leaves a space to the left where the label used to be.
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: LabelPosition
When you change the position of the label in the IDE, we change other properties so that the field lays out correctly. This is a design time courtesy that we can offer because you're in the middle of a designer.
The runtime however, be it web or desktop, has no such luxury. It can only do what you tell it to do.
The good news is that it's a very simple process to achieve what you want.
Have a look at the tip I've just posted.
http://vlforum.lansa.com.au/viewtopic.php?f=4&t=1143
Regards
The runtime however, be it web or desktop, has no such luxury. It can only do what you tell it to do.
The good news is that it's a very simple process to achieve what you want.
Have a look at the tip I've just posted.
http://vlforum.lansa.com.au/viewtopic.php?f=4&t=1143
Regards