Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

added hide_mode option #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RiZKiT
Copy link

@RiZKiT RiZKiT commented Jan 4, 2013

With hide_mode, the dropdown hide method can be changed to prevent different problems.

  • hide_mode: null (default): uses the old "left": -9000 to be backward compatible, but is problematic with very wide pages and with RTL.
  • hide_mode: "display": uses display hide/block, should be the most performant solution, but may result in uncorrect position/dimension calculations
  • hide_mode: "visibility": should be the most compatible version

Tested on a page with ~12000px x ~3000px and ~300 chosen dropdowns, with current Chrome & Firefox.

With hide_mode option the hide method for the dropdown can be changed to prevent different problems. 

"hide_mode: null": uses "'left': -9000" (its still the default to not break compatibility), can be problematic with very wide pages or with RTL.

"hide_mode: display": uses display hide/block, should be the most performant solution, but can result in uncorrect position/dimension calculations

"hide_mode: visibility": should be the most compatible version
@RiZKiT RiZKiT mentioned this pull request Jan 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant