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 messages cover form content  (Read 7710 times)
Alessandro (Efisio) R.
Posts: 42


« on: January 25, 2021, 11:12:14 am »

Hi everyone,

I have encountered a little and annoying graphical issue with GBC default display method for messages and errors (MESSAGE and ERROR BDL instructions).
Since they don't appear in a fixed and specific position but they pop over the underlying window, they could cover a little part of the form content.
This obviously has never happened in the GDC since messages and errors have their form space in the bottom of the window.

GBC has reintroduced the display of menu instruction title in a manner similar to the GDC display of the messages and errors, so I am wondering if the display of errors and messages in the GBC could be achieved like this.
This can probably be implemented through editing GBC templates and javascript code.
Can anyone help me?

I put as attachment a few screenshots, the 4st styles file and the per and bdl code to replicate the "issue".

Thanks
Alessandro

* test.tar (20 KB - downloaded 1168 times.)

* gbc58.png (37.6 KB, 1680x1010 - viewed 2319 times.)

* gdc.png (22.1 KB, 1309x916 - viewed 2298 times.)
Reuben B.
Four Js
Posts: 1116


« Reply #1 on: February 05, 2021, 12:22:13 am »

I understand the issue.  I don't recall why the GBC developers chose not to render ERROR/MESSAGE same as GDC and respect the values in the .4st with respect to the position, or add a new style attribute value for the rendering they have chosen.

You should note that the user can always tap on the close icon in the error/message to make it disappear and read what has been obscured.

There are some theme variables you can use to alter the behaviour via GBC customisation.

Look in http://4js.com/online_documentation/fjs-gbc-manual-html/reference/theme/theme_variables.html
for theme-message-display-position, theme-message-display-time, theme-error-display-time, theme-error-display-position

You may decide that changing the position may lessen the chance of something important being obscured
or decide to change the time values so that the error/message fades out after X seconds.

if you want to do more advanced customisation then grepping for those keywords in the GBC customisation sources should give you a good place to start

Reuben






Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines