Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: Куда-то делся scroll у модального окна...
Форумы портала PHP.SU » Клиентская разработка » JavaScript & VBScript » Куда-то делся scroll у модального окна...

Страниц (1): [1]
 

1. afuno - 08 Февраля, 2012 - 21:42:21 - перейти к сообщению
Здравствууйте!

Я впервые столкнулся с такой проблемой. У меня куда-то делся scroll у модального окна, т. е. нет прокрутки.

Вот javascript код:
CODE (html):
скопировать код в буфер обмена
  1. <script type="text/javascript">
  2. ModalMaxHeight = document.body.clientHeight;
  3. function editUser() {
  4. $(function(){
  5.  
  6.     $('#edituser').dialog({
  7.   resizable: false,
  8.   draggable: false,
  9.   closeOnEscape: true,
  10.             autoOpen: true,
  11.             show: 'fade',
  12.             hide: 'fade',
  13.             width: 450,
  14.   height: ModalMaxHeight,
  15.   buttons: {
  16.    "Сохранить": function() {
  17.     window.location.href = "#";
  18.    }
  19.   }
  20.     });
  21. });
  22. }
  23. </script>


В чём проблема и как её устранить?
2. afuno - 09 Февраля, 2012 - 14:36:36 - перейти к сообщению
Обновил JS на этот:
CODE (javascript):
скопировать код в буфер обмена
  1. <script type="text/javascript">
  2. function editUser() {
  3. $(function(){
  4.  
  5.     $('#edituser').dialog({
  6.                 resizable: false,
  7.                 draggable: false,
  8.                 closeOnEscape: true,
  9.         autoOpen: true,
  10.         show: 'fade',
  11.         hide: 'fade',
  12.         width: 450,
  13.         overflow: 'auto',
  14.         height: 500
  15.     });
  16. });
  17. }
  18. </script>


и всё равно нету прокрутки...

 

Powered by ExBB FM 1.0 RC1