Свойство fancybox

(Ответов: 1, Просмотров: 1780)
  1. Дипломник
    • Регистрация: 01.03.2013
    • Сообщений: 240
    • Репутация: 13
    • Webmoney BL: ?
    Подскажите плз как в fancybox сделать так что бы картинка не сжималась по размеру окна?

    отвечает за это вроде параметр autoResize
    пробую так
    Код HTML:
    <script type="text/javascript">
    	$(document).ready(function() {
    		$(".fancybox").fancybox({
        	openEffect	: 'elastic',
        	closeEffect	: 'elastic',
    		autoResize: 'false',
        	helpers : {
        		title : {
        			type : 'inside'
        		}
        	}
        });
    	});
    </script>
    все равно сжимается
    • 0
  2. Студент
    • Регистрация: 17.08.2010
    • Сообщений: 74
    • Репутация: 12

    Развернуть текст

    autoHeight If set to true, for 'inline', 'ajax' and 'html' type content width is auto determined. If no dimensions set this may give unexpected results
    Boolean; Default value: false
    autoWidth If set to true, for 'inline', 'ajax' and 'html' type content height is auto determined. If no dimensions set this may give unexpected results
    Boolean; Default value: false
    autoResize If set to true, the content will be resized after window resize event
    Boolean; Default value: !isTouch
    [свернуть]


    //Enable thumbnail helper and set custom options
    PHP код:
    $(".fancybox").fancybox({
        
    helpers:  {
            
    thumbs : {
                
    autoResizefalse,
                
    width:50,
                
    height50
            
    }
        }
    }); 


    ---------- Сообщение добавлено 19:14 ---------- Предыдущее 19:06 ----------

    fitToView - If set to true, fancyBox is resized to fit inside viewport before opening.
    еще на это обрати внимание. Честно, не пользовался этой приблудой, проскролил документацию только мельком.
    • 0

Похожие темы

Темы Раздел Ответов Последний пост
Проблема с fancybox в MODx
CMS 1 01.05.2013 12:35
Вопрос по плагину Easy FancyBox
WordPress 0 25.04.2013 12:12
Подключаю jquery, перестает работать fancybox
WordPress 5 29.11.2012 02:48
Интеграция Fancybox в WordPress без плагинов
WordPress 3 01.08.2012 17:30
FancyBox и JavaScript
Web программирование 1 28.05.2012 19:55

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры