From c2eeda56da965816121edb71f350f1f93927035d Mon Sep 17 00:00:00 2001
From: Guillem <guillembartrina@gmail.com>
Date: Sun, 27 Sep 2020 16:53:44 +0200
Subject: [PATCH] fix dialog borders and tilebar

---
 pd/nw/dialog_abstractions.html | 43 +++++++++++++---------------------
 pd/nw/pdgui.js                 |  4 ++--
 2 files changed, 18 insertions(+), 29 deletions(-)

diff --git a/pd/nw/dialog_abstractions.html b/pd/nw/dialog_abstractions.html
index d5e87b4a1..0c3ae631f 100644
--- a/pd/nw/dialog_abstractions.html
+++ b/pd/nw/dialog_abstractions.html
@@ -4,32 +4,21 @@
     <link id="page_style" rel="stylesheet" type="text/css" href="css/default.css">
   </head>
   <style>
-/* width */
-::-webkit-scrollbar {
-  width: 5px;
-}
-
-/* Track */
-::-webkit-scrollbar-track {
-  background: rgba(0,0,0,0); 
-}
-
-/* Handle */
-::-webkit-scrollbar-thumb {
-  background: rgba(0, 0, 0, 0.267); 
-}
-
-/* Handle on hover */
-::-webkit-scrollbar-thumb:hover {
-  background: #888;
-}
-
-label {
-	margin-left: 5px;
-}
   </style>
-  <body class="dialog_body">
-    <div class="container">
+  <body class="dialog_body prefs_body" style="overflow: hidden;">
+    <div class="container noselect prefs_container">
+      <table id="titlebar">
+        <tr>
+          <td style="width: 100%;">
+            <div id="titlebar_title">Abstractions</div>
+          </td>
+          <td id="titlebar_buttons_td">
+            <div class="titlebar_buttons">
+              <div id="titlebar_close_button" onclick="cancel();">&#215</div>
+            </div>
+          </td>
+        </tr>
+      </table>
       <form>
         <fieldset style="width: 90%; border: 2px solid grey">
           <legend data-i18n="abstractions.private"></legend>
@@ -110,8 +99,8 @@ function populate_form(attrs) {
     canvas = attrs.canvas;
     deletequeue = new Set();
     var tables = document.querySelectorAll("table"),
-        privateglobal_table = tables[0],
-        privatelocal_table = tables[1];
+        privateglobal_table = tables[1],
+        privatelocal_table = tables[2];
         //filebased_table = tables[2]
 
     /*
diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index ce25a088d..fd28e6a38 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -6018,8 +6018,8 @@ function gui_external_dialog(did, external_name, attr_array) {
 function gui_abstractions_dialog(cid, gfxstub, filebased_abs, private_abs) {
     var attrs = { canvas: cid, filebased_abs: filebased_abs,
                     private_abs: private_abs };
-    dialogwin[gfxstub] = create_window(gfxstub, "abstractions", 300, Math.min(600, (private_abs.length*10 + 215)),
-        0, 0, attrs);
+    dialogwin[gfxstub] = create_window(gfxstub, "abstractions", 300, 
+        Math.min(600, (private_abs.length*10 + 240)), 0, 0, attrs);
 }
 
 // Global settings
-- 
GitLab