mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +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
|
||||
var off = 20;
|
||||
var elPadding = ($(el).outerWidth()-$(el).width());
|
||||
if(!$(el).hasClass("SVGlabel")) {
|
||||
$("<div class='dragSize'></div>")
|
||||
.appendTo(el)
|
||||
@ -547,7 +548,7 @@ f18_addDragger(el)
|
||||
top:$(comp).height()+2, left:$(comp).width()-off, "z-index":1 })
|
||||
.draggable({
|
||||
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,
|
||||
height:ui.position.top });
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user