2
I’m developing a website and added the lionscroll plugin (to show that bar similar to Facebook, which disappears and appears, depending on the position of the cursor). Anyway, here’s the problem...
When I am in desktop resolution, it works (as if it is in mobile version). But, if I change to another resolution, the plugin breaks the layout and makes the content disappear... if I reload the page it works again
Example, tested in browser...
With size 1200px it works, if I change to 480px it gives dick... If I go in at 480px and switch to 1200px it goes...
I wonder if you have how to give a "repaint", when there is the resize event in the window, to see if this would solve the problem.
There is that in js?
You can put an example with HTML? jsFiddle for example. Layout differences are done with javascript?
– Sergio
Take a look here http://ajaxian.com/archives/forcing-a-ui-redraw-from-javascript and here http://stackoverflow.com/questions/8840580/force-dom-redraw-refresh-on-chrome-mac
– Marcelo Bezerra bovino
A repaint should not help, you need to see if your plugin has any method to update the dimensions after resizing the window, or restart the plugin as suggested by Paulo Maciel.
– bfavaretto