From b48275b679267897271303732dff00f371ee856b Mon Sep 17 00:00:00 2001 From: Hamid Samak Date: Wed, 8 Aug 2018 15:49:58 +0430 Subject: [PATCH] Add sidebar tag & Remove unused old resize actions --- pheditor.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pheditor.php b/pheditor.php index 80f7893..291f719 100755 --- a/pheditor.php +++ b/pheditor.php @@ -395,19 +395,6 @@ function escapeHtml(string) { } window.onload = function() { - window.onresize = function() { - if (window.innerWidth <= 1000) { - id("sidebar").style.height = ""; - id("editor").style.height = ""; - id("editor").style.minHeight = "100px"; - } else { - id("sidebar").style.height = (window.innerHeight - id("top").clientHeight - 5) + "px"; - id("editor").style.height = (window.innerHeight - 25 - id("top").clientHeight) + "px"; - } - } - - window.onresize(); - id("save").setAttribute("disabled", ""); id("close").setAttribute("disabled", ""); @@ -476,7 +463,7 @@ document.onkeydown = function(event) {
- +