Changeset 23168


Ignore:
Timestamp:
Jun 13, 2013, 1:08:36 PM (7 years ago)
Author:
plg
Message:

bug fixed: incorrect width with Simple, because #theMainImage border and
margin were not taken into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/automatic_size/picture_js.tpl

    r23074 r23168  
    55      var width = jQuery("#theImage").width()
    66      width -= {/literal}{$asize_width_margin}{literal};
     7
     8      if (jQuery("#theMainImage").size() > 0) {
     9        var imageMarginWidth = jQuery("#theMainImage").outerWidth(true)-jQuery("#theMainImage").width();
     10        width -= imageMarginWidth;
     11      }
    712
    813      var docHeight = "innerHeight" in window ? window.innerHeight : document.documentElement.offsetHeight;
Note: See TracChangeset for help on using the changeset viewer.