Fixed position toolbar blocks the "X" close button in the modal.

See image for explanation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

Can confirm with rubik

bgilhome’s picture

This seems to occur because the iframe gets some css updated when the parent window is scrolled, and the top gets set too high (10px). I've created a patch to disable scrolling parent window when dialog is open - hopefully this is suitable.

WorldFallz’s picture

Status: Active » Needs work

I'm going through the issue queue now in preparation for tagging a new release. It would be great to get some eyes on bgilhome's proposed fix/patch.

l0ke’s picture

This issue caused by jQuery UI 1.10 that comes with last jQuery Update module. The thing is that in jQuery UI 1.10 the zIndex option is removed. So dialog now has default z-index: 100; that is less than Toolbar has.
We now have to set z-index directly in the css.

l0ke’s picture

Status: Needs work » Needs review
acrollet’s picture

I think it's worth combining the two approaches - attached patch combines the previous two, and also sets the modal height to 85% of the window height instead of 90. (I was having the bottom go slightly off-screen)

aDarkling’s picture

Status: Needs review » Reviewed & tested by the community

Tried #6 with jQuery UI 1.10 on Chrome and Chrome Mobile.
I too was having a problem with a disappearing bottom. This fixed that as well.
I also like that it stops the background content from scrolling.
The code looks good.

+1 RTBC

WorldFallz’s picture

This looks good and tests ok. But I'm leaning toward lowering the height even more to 75%. There's no reason a dialog box should take up the entire screen.

  • WorldFallz committed 0974daa on 7.x-1.x authored by acrollet
    Issue #2048777 by l0ke, bgilhome, acrollet: Can't get to close button in...
WorldFallz’s picture

Status: Reviewed & tested by the community » Fixed

Committed #6 but with height at 75%.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.