mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
f18.js: fix drag problem with header (Forum #82351)
git-svn-id: https://svn.fhem.de/fhem/trunk@23724 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
04271b0ba7
commit
25123fd0a3
@ -539,6 +539,7 @@ f18_addDragger(el)
|
|||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
// Size
|
// Size
|
||||||
var off = 20;
|
var off = 20;
|
||||||
|
var elPadding = ($(el).outerWidth()-$(el).width());
|
||||||
if(!$(el).hasClass("SVGlabel")) {
|
if(!$(el).hasClass("SVGlabel")) {
|
||||||
$("<div class='dragSize'></div>")
|
$("<div class='dragSize'></div>")
|
||||||
.appendTo(el)
|
.appendTo(el)
|
||||||
@ -547,7 +548,7 @@ f18_addDragger(el)
|
|||||||
top:$(comp).height()+2, left:$(comp).width()-off, "z-index":1 })
|
top:$(comp).height()+2, left:$(comp).width()-off, "z-index":1 })
|
||||||
.draggable({
|
.draggable({
|
||||||
drag:function(evt,ui){
|
drag:function(evt,ui){
|
||||||
$(el).css( { width:ui.position.left+off });
|
$(el).css( { width:ui.position.left+off-elPadding });
|
||||||
$(comp).css({ width:ui.position.left+off,
|
$(comp).css({ width:ui.position.left+off,
|
||||||
height:ui.position.top });
|
height:ui.position.top });
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user