public inbox for [email protected]  
help / color / mirror / Atom feed
[pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable
2+ messages / 2 participants
[nested] [flat]

* [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable
@ 2022-04-13 09:56 Khushboo Vashi <[email protected]>
  2022-04-13 12:12 ` Re: [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable Akshay Joshi <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Khushboo Vashi @ 2022-04-13 09:56 UTC (permalink / raw)
  To: pgadmin-hackers

Hi,

Please find the attached patch to fix the rm #7026 - Browser panel is not
completely viewable.

Thanks,
Khushboo


Attachments:

  [application/octet-stream] RM_7026.patch (936B, 3-RM_7026.patch)
  download | inline diff:
diff --git a/web/pgadmin/static/js/tree/tree_init.tsx b/web/pgadmin/static/js/tree/tree_init.tsx
index 168708bc4..3d4379fa6 100644
--- a/web/pgadmin/static/js/tree/tree_init.tsx
+++ b/web/pgadmin/static/js/tree/tree_init.tsx
@@ -86,12 +86,21 @@ var initBrowserTree = async (pgBrowser) => {
     return true;
   }
 
-  await treeModelX.root.ensureLoaded()
+  await treeModelX.root.ensureLoaded();
+  var _height = undefined;
+
+  document.getElementsByClassName('wcLayoutPane').forEach((item, index) => {
+    if (index > 0 && $(item).find('#tree').length == 1) {
+      _height = item.clientHeight - 30;
+    }
+  });
+
 
   // Render Browser Tree
   await render(
       <FileTreeX model={treeModelX}
-        onReady={itemHandle} create={create} remove={remove} update={update}/>
+        onReady={itemHandle} create={create} remove={remove} update={update}
+        height={_height} />
      , document.getElementById('tree'));
 }
 


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable
  2022-04-13 09:56 [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable Khushboo Vashi <[email protected]>
@ 2022-04-13 12:12 ` Akshay Joshi <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Akshay Joshi @ 2022-04-13 12:12 UTC (permalink / raw)
  To: Khushboo Vashi <[email protected]>; +Cc: pgadmin-hackers

Thanks, the patch applied.

On Wed, Apr 13, 2022 at 3:26 PM Khushboo Vashi <
[email protected]> wrote:

> Hi,
>
> Please find the attached patch to fix the rm #7026 - Browser panel is not
> completely viewable.
>
> Thanks,
> Khushboo
>
>

-- 
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-04-13 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 09:56 [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable Khushboo Vashi <[email protected]>
2022-04-13 12:12 ` Akshay Joshi <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox