2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

f18.js: iOS specific positioning (Forum #82351)

git-svn-id: https://svn.fhem.de/fhem/trunk@17318 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-09-10 16:25:56 +00:00
parent 403f8d035d
commit 4eb783fb92

View File

@ -414,7 +414,7 @@ f18_resize()
left += hl ? 0 : 40; left += hl ? 0 : 40;
left += pm ? 0 : 44; left += pm ? 0 : 44;
var lleft = (pm ? 10 : 52); var lleft = (pm ? 10 : 52);
$("input.maininput").css({ width:(w-left-(FW_isiOS ? 26 : 24))+'px', $("input.maininput").css({ width:(w-left-(FW_isiOS ? 36 : 24))+'px',
"margin-left":(rm ? "0px" : "10px"), "margin-left":(rm ? "0px" : "10px"),
display: hi ? "none":"block"}); display: hi ? "none":"block"});
$("#menu,#content").css("top", (hi && pm && hl) ? "10px" : "50px"); $("#menu,#content").css("top", (hi && pm && hl) ? "10px" : "50px");
@ -422,6 +422,8 @@ f18_resize()
$("#menuBtn").toggle(!pm || f18_small); $("#menuBtn").toggle(!pm || f18_small);
$("#menuBtn").css({ left:(rm ? "auto":"10px"), right:(rm ? "10px":"auto") }); $("#menuBtn").css({ left:(rm ? "auto":"10px"), right:(rm ? "10px":"auto") });
$("#logo") .css({ left:(rm ? "auto":lleft ), right:(rm ? "48px":"auto") }); $("#logo") .css({ left:(rm ? "auto":lleft ), right:(rm ? "48px":"auto") });
if(FW_isiOS)
$("#logo,#menuBtn").css({ top:'12px'});
} }
function function