Jump to content

Problems with Apple-Safari and z-index ...


erich.wanker

Recommended Posts

Hi .. i want to give an UniContainerpanel the css ->  z-Index: 900000 !important;

and it works fine in chrome, edge, firefox, opera ... JUST Apple makes problems... 😞

(i treid a lot: .hauptmenu { translateZ(1000px) !important; -webkit-transform: translate3D(0,0,0) !important; transform: translate3D(0,0,0) !important; position: absolute !important;   z-index: 90000 !important;}');

  • i made a testcase for this - if someone has a idea how to solve this

 

The paged Mainform has a UniContainerpanel (as Mainmenu) and a button -> UniForm1.showmodal 

 

Chrome shows the black UniContainerpanel correct over UniForm1

chrome_2.jpg.351a38c52aa416ce275eeb45d2379c98.jpg

 

Safari ignores the css - and put the form over the black UniContainerpanel

safari_2.jpg.0298ce063d8d9952b31d1e93e537a449.jpg

if someone has a solution - what would be fine 😉

 

ThanX

 

Erich

 

chrome_1.jpg

safari_1.jpg

testcase.zip

Link to comment
Share on other sites

14 minutes ago, erich.wanker said:

and it works fine in chrome, edge, firefox, opera ... JUST Apple makes problems..

this is know issue on Safari: This should probably fix your issue on safari -webkit-transform:translate3d(0,0,0);

 

full example:
{
   -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    position: absolute;
    z-Index: 900000 !important;
}

https://stackoverflow.com/questions/40895387/z-index-not-working-on-safari-fine-on-firefox-and-chrome

https://ecomgraduates.com/blogs/news/fixing-z-index-issue-on-safari-browser

https://www.flowradar.com/answer/causes-of-z-index-issues-sticky-header-safari-webflow

Link to comment
Share on other sites

hi 🙂 ant thank you for your support

This doesnt help 

in the testcase i use  { translateZ(1000px) !important; -webkit-transform: translate3D(0,0,0) !important; transform: translate3D(0,0,0) !important; position: absolute !important;   z-index: 90000 !important;}');

Link to comment
Share on other sites

5 minutes ago, erich.wanker said:

hi 🙂 ant thank you for your support

This doesnt help 

in the testcase i use  { translateZ(1000px) !important; -webkit-transform: translate3D(0,0,0) !important; transform: translate3D(0,0,0) !important; position: absolute !important;   z-index: 90000 !important;}');

Hi, what browser you use on mobile device, name and version can you tell me ?

Link to comment
Share on other sites

Hi .. i tested a lot different Safaris / different versions of OS / different devices iPad, iPhone . .

the problem is in every situation with an apple browser

Link to comment
Share on other sites

2 hours ago, erich.wanker said:

Hi .. i tested a lot different Safaris / different versions of OS / different devices iPad, iPhone . .

the problem is in every situation with an apple browser

can you try to set : 

 position: relative 

based on: https://stackoverflow.com/questions/32033104/element-disappears-when-not-setting-opacity-0-99

 

try this : 

Method 3: Set opacity to 0.99
Setting the opacity of the element to 0.99 can also fix the z-index issue on Safari. This is because Safari treats an element with opacity less than 1 as a new stacking context. By setting the opacity of the element to 0.99, you can prevent it from overlapping with other elements.(15.03.2022 г.)

https://github.com/vaadin/vaadin-form-layout/issues/110#issuecomment-497676969

Link to comment
Share on other sites

Hello everyone and thank you for your support.

I have not been able to solve the problem with safari and give up.

I will change the logistics in my software - to work around the problem.

Norm: I want a parent main menu - that is always above any currently visible window.

I will now create many copies of this main menu to solve the problem.

Thank you very much
Eric

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...