Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
GAS and GBC
>
GBC center forms to browse screen
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: GBC center forms to browse screen (Read 14449 times)
Kevin L.
Posts: 10
GBC center forms to browse screen
«
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 2742 times.)
Reuben B.
Posts: 1116
Re: GBC center forms to browse screen
«
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
Re: GBC center forms to browse screen
«
Reply #2 on:
June 01, 2018, 01:17:37 pm »
Thanks Reuben that is exactly what I was looking for.
Kevin L.
Posts: 10
Re: GBC center forms to browse screen
«
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 2706 times.)
Reuben B.
Posts: 1116
Re: GBC center forms to browse screen
«
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
Re: GBC center forms to browse screen
«
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.
Posts: 80
Re: GBC center forms to browse screen
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...