help3/xhpeditor/index.php | 8 ++++---- help3/xhpeditor/xhpeditor.css | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 8 deletions(-)
New commits: commit d974c39eb554fdb5f7d0c9cfbc953860e4eb670a Author: Olivier Hallot <[email protected]> AuthorDate: Sat Jan 11 17:49:14 2020 -0300 Commit: Olivier Hallot <[email protected]> CommitDate: Sun Jan 12 14:35:12 2020 +0100 Fix header in rendered page Allow to keep the appl and sys selectors visible when scrolling the rendered page. Change-Id: I5579523b73f6bd734bcae2854e788ad760abb954 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86628 Reviewed-by: Olivier Hallot <[email protected]> Tested-by: Olivier Hallot <[email protected]> diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php index 085ef73..9e1b066 100644 --- a/help3/xhpeditor/index.php +++ b/help3/xhpeditor/index.php @@ -38,7 +38,7 @@ $xhp = $_POST["xhpdoc"]; </head> <body style="font-family:sans-serif;"> -<div class="leftside"> +<div id="leftside"> <h2>LibreOffice Documentation XHP Editor</h2> <form id="CMtextarea" class="form_area" method="post" action="index.php"> @@ -52,11 +52,11 @@ $xhp = $_POST["xhpdoc"]; <?php include './buttons.php';?> </div> </div> -<div class="rightside"> +<div id="rightside"> <?php $xhp = $_POST["xhpdoc"]; if (isset($_POST["render_page"])) { - echo '<h2>Rendered page</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; + echo '<div id="renderedpageheader"><h2>Rendered page</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; $opSys = array("MAC", "WIN", "UNIX"); foreach ($opSys as $value) { echo '<input type="radio" name="sys" onclick="setSystemSpan(\''.$value.'\')" class="snip_buttons">'.$value.' '; @@ -66,7 +66,7 @@ $xhp = $_POST["xhpdoc"]; foreach ($appModule as $value){ echo '<input type="radio" name="app" onclick="setApplSpan(\''.$value.'\')" class="snip_buttons">'.$value.' '; } - echo '</p></div></div><div id="renderedpage">'; + echo '</p></div></div></div><div id="renderedpage">'; $xml = new DOMDocument(); $xml->loadXML($xhp); $xsl = new DOMDocument; diff --git a/help3/xhpeditor/xhpeditor.css b/help3/xhpeditor/xhpeditor.css index 10d262b..d85e145 100644 --- a/help3/xhpeditor/xhpeditor.css +++ b/help3/xhpeditor/xhpeditor.css @@ -27,7 +27,7 @@ display:block; } -.leftside{ +#leftside{ top: 0%; bottom:0%; left:0%; @@ -38,15 +38,15 @@ border:1px solid grey; overflow: scroll; } -.rightside{ +#rightside{ top: 0%; bottom:0%; right:0%; left: 50%; position:absolute; background: AliceBlue; - overflow: scroll; border:1px solid grey; + overflow:auto; } .systembuttons{ float:left; @@ -54,11 +54,22 @@ .applbuttons{ float:right; } +#renderedpageheader{ + top: 0%; + right:0%; + left: 50%; + position:fixed; + margin: 0px 10px 10px 10px; + background: AliceBlue; +} #renderedpage { background-color: gray; - margin: 10px; + margin: 100px 10px 10px 10px; + right:0%; + left: 50%; line-height: normal; clear:left; + overflow: auto; } /* Imported from default css for DisplayArea */ _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
