Fix Joomla SqueezeBox - Expandable Lightbox positioning

*Fix Joomla SqueezeBox - Expandable Lightbox positioning* Joomla v.3.8.11 File: /media/system/js/modal.js Line: 395 Search for: this.win.setStyles **Problem** The lightbox is sometimes moved and located outside the user-accessible area. The reason for this is the incorrect calculation of the values "left" and "top". **Solution** Change left and top to 0 **Before** left: (scroll.x + (size.x - this.win.offsetWidth) / 2 - this.scrollOffset).toInt() + 'px', top: (scroll.y + (size.y - this.win.offsetHeight) / 2).toInt() + 'px' **After** left: 0, top: 0 And if this doesn't do the job, simply add the following line to 'templates/protostar/css/template.css' #sbox-window { position:fixed } looks ugly but works... kind of
The lightbox (SqueezeBox - Expandable Lightbox, which is used to crop images in Protostar) is sometimes moved and located outside the user-accessible area. The reason for this is the incorrect calculation of the values "left" and "top".

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.