Page 2 of 2
Re: Hidden fields reappearing behind mask screen
Posted: Mon Jan 31, 2022 2:27 pm
by Scott Klement
Did hiding the element this way work when it wasn't being overlaid?! The css class is "blueprint-grid" which makes me wonder if this is a grid element that you're trying to hide.
Note the comment in my original code example:
Code: Select all
// extra processing may be needed for some elements, depending on
// how complex they are. For example, a grid would need to be
// re-rendered.
Re: Hidden fields reappearing behind mask screen
Posted: Tue Feb 01, 2022 3:10 pm
by RichDotsonMTD
Yes, the element is being hid this way when it isn't being overlaid. That being said, that element had the incorrect css class assigned to it. I removed the "blueprint-grid" value and assigned the correct css class to it. The element being hid in this example was a layout widget type. Correcting the css class had no affect on the process. The layout element is still hidden on the initial display but is appearing when overlaid with a window.
Re: Hidden fields reappearing behind mask screen
Posted: Tue Feb 01, 2022 7:39 pm
by RichDotsonMTD
I couldn't spend any more time to figure this out so I created a work around. Instead of trying to re-hide the underlying fields I just change the opacity of the window mask screen so that the fields underneath do not bleed through. I only change the opacity if there were fields that were hidden otherwise the window mask screen appears as normal.
Re: Hidden fields reappearing behind mask screen
Posted: Wed Feb 02, 2022 5:48 pm
by Scott Klement
sounds good to me.
I'm not sure why the previous stuff wasn't working. If you decide to try again, you'll need to use the debugger and figure out what's going on.