jtulach commented on code in PR #9602:
URL: https://github.com/apache/netbeans/pull/9602#discussion_r3947999415


##########
platform/openide.explorer/src/org/openide/explorer/view/NodeRenderer.java:
##########
@@ -135,7 +137,9 @@ public Component getTreeCellRendererComponent(
 
         //Do our additional configuration - set up the icon and possibly
         //do some hacks to make it look focused for TreeTableView
-        configureFrom(renderer, tree, expanded, sel, vis);
+        int iconWidth = configureFrom(renderer, tree, expanded, sel, vis);
+
+        renderer.setIndent(iconWidth * findIndent(tree.getModel(), vis));

Review Comment:
   
   @mbien wrote:
   > indentation amount could also become a UI property
   
   - there is `int findIndent` in the current solution
   - it computes the indentation in the multiplies of image size
      - that's not really a UI property
   - however I was thinking of turning it into `double findIndent`
      - that could be one solution of the wide empty space
      - the indentation could be 0.5 or even less per nested level
   - then it would get closer to L&F aspects and might deserve a UI property
   - anyway, I plan to go _"for something completely different"_ now
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to