After 2nd recreateUI the table column height is bigger

Questions and answers for designing and implementing forms in Servoy

After 2nd recreateUI the table column height is bigger

Postby deezzub » Fri Aug 08, 2014 12:58 pm

I have the following functions.:

Code: Select all
function prepareSimbaUI( ) {
   
   /** @type {JSForm} */
   var form,
      header,
      formName = '';
   
   formName = controller.getName( );
   
   form = solutionModel.getForm( formName );
   header = form.getTitleHeaderPart( );
   header.height = titleHeaderHight;
   application.output( form.getFields( )[ 0 ].height );
   controller.recreateUI( );
   application.output( form.getFields( )[ 0 ].height );
}


and

Code: Select all
function restoreTableUI( ) {
   
   /** @type {JSForm} */
   var form,
      header;
   
   form = solutionModel.getForm( controller.getName( ) );
   application.output( form.getFields( )[ 0 ].height );
   header = form.getTitleHeaderPart( );
   header.height = 0;
   application.output( form.getFields( )[ 0 ].height );
   controller.recreateUI( ); // Now I have a bigger field height
   application.output( form.getFields( )[ 0 ].height );
}


After calling restoreTableUI, I have bigger fields in the table view after controller.recreateUI( ).

This is the output of both functions after calling.:

20.0
20.0
20.0
20.0
20.0


Why I see bigger fields in the GUI?
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: After 2nd recreateUI the table column height is bigger

Postby maria.kyselova » Tue Aug 12, 2014 5:46 am

Sounds like after you got rid of the title header part of the form, the Y coordinate of your field moved up, but its bottom kind of got stuck where it was.
Have you figured it out yet?
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am


Return to Forms

Who is online

Users browsing this forum: No registered users and 12 guests

cron