Form size changes when I change form item visibility

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Sep 27, 2011
Company:

Hello!

I would like to hide some of form items depending on the data, user enter to the form. I set False or True to the Visible property for form items and they change visiblity. But the form changes its size too! That looks annoying. What can I do to make form have a static size?

 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

May be Im wrong, but I noticed the following
try set property visible for all form items to true, and change property visible in OnCreateAtServer event handler. So then form size not change. But if i set property visible to false in properties pane in designer then after item's visible changed to true, form size changes

Edited: ivan avdonin - Nov 30, 2012 05:41 PM
 
#3
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Sep 27, 2011
Company:

Is it a bug or a feature?

 
#4
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

It is a feature. Form size grows than you need it to, but when you want to hide something form size stays the same and just rearranging items. It also depends a little of platform version. I have noticed a little different behavior checking 8.3.

 
#5
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Sep 16, 2011
Company: individual

You can use pages to group your form items and hide entire the page to keep form size a bit more stable.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.