[Libreoffice-commits] dev-tools.git: help3/xhpeditor

Olivier Hallot (via logerrit) logerrit at kemper.freedesktop.org
Sun Jan 12 13:35:30 UTC 2020


 help3/xhpeditor/index.php     |    8 ++++----
 help3/xhpeditor/xhpeditor.css |   19 +++++++++++++++----
 2 files changed, 19 insertions(+), 8 deletions(-)

New commits:
commit d974c39eb554fdb5f7d0c9cfbc953860e4eb670a
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Sat Jan 11 17:49:14 2020 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
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 <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

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 */


More information about the Libreoffice-commits mailing list