Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: GBC center forms to browse screen  (Read 14443 times)
Kevin L.
Posts: 10


« 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).


* form.png (79.44 KB, 1920x1034 - viewed 2741 times.)
Reuben B.
Four Js
Posts: 1116


« Reply #1 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Kevin L.
Posts: 10


« Reply #2 on: June 01, 2018, 01:17:37 pm »

Thanks Reuben that is exactly what I was looking for.
Kevin L.
Posts: 10


« Reply #3 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.


* form2.png (103.81 KB, 1920x1034 - viewed 2705 times.)
Reuben B.
Four Js
Posts: 1116


« Reply #4 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




Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Kevin L.
Posts: 10


« Reply #5 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.).
Sisavanh S.
Four Js
Posts: 80


« Reply #6 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines