mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
svg.js: make it iOS6 style compatible (patch from BlackCat) (Forum #23406)
git-svn-id: https://svn.fhem.de/fhem/trunk@20845 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
080f1f626c
commit
49eb324013
@ -251,9 +251,7 @@ sv_menu(evt, embed)
|
|||||||
$(svg).append(par.circle);
|
$(svg).append(par.circle);
|
||||||
|
|
||||||
par.div = $('<div id="svgmarker">');
|
par.div = $('<div id="svgmarker">');
|
||||||
par.divoffY = $(embed ? embed : svg).offset().top -
|
par.divoffY = -50;
|
||||||
$("#content").offset().top-50 +
|
|
||||||
$("#content").scrollTop();
|
|
||||||
var parent = (embed ? $(embed).parent() : $(svg).parent());
|
var parent = (embed ? $(embed).parent() : $(svg).parent());
|
||||||
$(parent).append(par.div);
|
$(parent).append(par.div);
|
||||||
|
|
||||||
@ -444,6 +442,7 @@ $(document).ready(function(){
|
|||||||
svg_load("svg_pastedata", function(val) {svg_pastedata = val} );
|
svg_load("svg_pastedata", function(val) {svg_pastedata = val} );
|
||||||
});
|
});
|
||||||
$("svg[id]").each(function(){ // <svg> (direct)
|
$("svg[id]").each(function(){ // <svg> (direct)
|
||||||
|
$(this).parent().css( "position", "relative" );
|
||||||
if($(this).attr("id").indexOf("SVGPLOT") == 0)
|
if($(this).attr("id").indexOf("SVGPLOT") == 0)
|
||||||
svg_init_one(undefined, this);
|
svg_init_one(undefined, this);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user