Skip to content
Snippets Groups Projects
Commit 22ee986c authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

outerWidth/outerHeight

parent 593cd1b8
No related branches found
No related tags found
No related merge requests found
......@@ -186,10 +186,10 @@ define(['jquery'], function ($) {
$p.find('.vl-overlay');
if ($e.length) $e.fadeIn(400, function() {
var $this = $(this);
var pwd = $p.width(), pht = $p.height();
var pwd = $p.outerWidth(true), pht = $p.outerHeight(true);
var wd = _wd || 0.75, ht = _ht || wd;
$this.width(wd * pwd);
$this.height(ht * pht);
$this.outerWidth(wd * pwd);
$this.outerHeight(ht * pht);
$this.css('left', pwd * (1-wd) / 2);
$this.css('top', pht * (1-ht) / 2);
$this.removeClass('hidden');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment