nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
616 stars 190 forks source link

Top pisition #160

Closed kaifaty closed 6 years ago

kaifaty commented 7 years ago

Позиция top при клике. image 2

Позиция top после ресайза окна. image 4

Позиция топ так и задумана?

nazar-pc commented 7 years ago

Без демки сложно сказать: https://github.com/nazar-pc/PickMeUp#contribution

kaifaty commented 7 years ago
#demo.js 
pickmeup('input', {
--      position       : 'right',
++      position       : 'top',
        hide_on_select : true
    });

image 7

значение переменной root_element.offsetHeight при первом клике на календаре равно 0. После ресайза окна браузера значение появляется.

image 12

Видится мне это все таки не фича, а баг.

nazar-pc commented 7 years ago

Всё равно не понимаю что у вас происходит и что именно у вас не так. Сделайте мне нормальную живую демку на jsfiddle, с подробным описанием что именно не так происходит и как вы ожидали что оно себя поведет.

ymazhar commented 6 years ago

Good day! Great plugin, thank you! ) But I have the same problem with top position when I call plugin. After resize get into the right position.

https://jsfiddle.net/0yzz2jxx/3/

nazar-pc commented 6 years ago

Thanks for the demo! Can you try https://github.com/nazar-pc/PickMeUp/commit/f0e8ece062da57037ff031d3a55874cda0b1499e and confirm that it works properly for you?

ymazhar commented 6 years ago

Works correctly. Thank you!

nazar-pc commented 6 years ago

Thanks for reporting and testing! Released as 3.1.3.