chernikovalexey/Prevel — Issue #12: Hide and show don't work as expected
Author: johnarleyburns
Created: 2012-01-27 23:22:19+00:00
State: open

The pl().hide() and pl().show() functions work differently than in most other frameworks. Namely, they change the visibility of the elements. What this means is that not only the element but the space taken up by the element disappears.

Typically, this isn't how you want hide and show to work. Instead of changing the CSS visibility property, you want to change the display property. This means you want to change it to "none" for hiding, and back to what it was before for showing. This will leave the page layout identical, but simply have the element transparent or showing.

Suggested fix is either to change the hide and show events to use display property instead of invisibility, or alternatively to introduce new methods that work on the display property instead of the visibility property.