Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Kevin L. on May 31, 2018, 07:58:53 pm



Title: GBC center forms to browse screen
Post by: Kevin L. on May 31, 2018, 07:58:53 pm
GBC =1.00.44c

Is it possible to display the GBC windows centered to the browser through a GBC SASS configuration or 4ST style?

Many of our forms are designed to look like columns but they are always rendered from the top left and leave large amounts of blank space on the right side of the browser if you are running with a high resolution. See attached screenshot for an example.

Is there a way to center forms so they appear in the middle of the browser with even space on the left and right? (Look at how the 4JS forum displays as an example of what I am looking for).


Title: Re: GBC center forms to browse screen
Post by: Reuben B. on June 01, 2018, 12:56:14 am
Hi Kevin,

Yes since 1.00.35 using .4st entries.  See the note here  http://4js.com/online_documentation/fjs-gbc-manual-html/#gbc-topics/gbc_whatsnew.html for 1.00.35 and Table 8

Reuben


Title: Re: GBC center forms to browse screen
Post by: Kevin L. on June 01, 2018, 01:17:37 pm
Thanks Reuben that is exactly what I was looking for.


Title: Re: GBC center forms to browse screen
Post by: Kevin L. on June 01, 2018, 02:55:30 pm
Follow up question, this works great to position static forms centered to the browser but also seems to cause dynamic form elements, such as DISPLAY ARRAY, to no longer grow dynamically.  Horizontally I can understand how to adjust this.  But what about vertically? Is there some way to get tables to grow vertically to the browser height ? See attached screenshot.


Title: Re: GBC center forms to browse screen
Post by: Reuben B. on June 05, 2018, 01:57:25 am
Kevin,

Your follow-up question is an interesting one.  It was raised during the EAP but looking at the discussion trails that arose out of the EAP discussion, the EAP question had two parts and the focus was on the first part (an unnecessary scroll bar being rendered), and the second part about number of rows seems to have been overlooked.

If you run same program with same .4st using Windows GDC, you should see that the number of rows is fixed to that as defined in the .per.  As sizable=no, you can't resize or maximise the window to make more rows appear.  So it could be argued that the GBC behaviour mimics the GDC behaviour.  It also matches the documented behaviour for sizable=no "On a normal window, the behavior is applied to the form instead of the window. When set to "no", the form content is not stretched, even if the form contains stretchable items."

But if you removed the position=center or sizable=no style attribute and run the program in the GBC, the table does expand to fill space available so it could be argued that the position=center style behaviour should be the same.

So I suspect unless I have missed something, there is not a quick answer.  I would suggest you raise a support question so it can be tracked properly.  Quote SUPW-655 (our internal number for the genero internal discussion) so that it can be linked to the earlier discussion from genero internal.  I suspect we will need to come up with a solution that matches your example.  sizable=vertical perhaps.

Reuben





Title: Re: GBC center forms to browse screen
Post by: Kevin L. on June 05, 2018, 02:34:41 pm
Thanks for the research Reuben. I have passed the information over to support. This topic ties in well with discussions we have already started with your team about supporting more responsive behavior in the GBC (i.e.form factors, Bootstrap, etc.).


Title: Re: GBC center forms to browse screen
Post by: Sisavanh S. on June 06, 2018, 11:34:44 am
Hi,

FYI, I've filed request
GBC#1920: Would to a style for forms to be horizontally centered and vertically sizable

Best regards,
Sisa.