Request: Inset builder to have option to return the actual size
See original GitHub issueI am using https://github.com/cashapp/contour in a project and it would be nice to have something like
val actualStatusBarsSize = Insetter.builder().valueTop(statusBars =true).build().value
There are probably other uses cases outside of using contour where this could be helpful like
val navBarSize = Insetter.builder().valueTop(navigationBars =true).build().value
view1.updatePadding(0,navBarSize,0,0)
view2.updatePadding(0,navBarSize,0,0)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
InsetDrawable - Android Developers
This is used when a View needs a background that is smaller than the View's actual bounds. It can be defined in an...
Read more >Insets.top , left, bottom, right all zero - java - Stack Overflow
To get an "exact size" program, you need to ask the window manager for a frame-less window, which can be done in Java....
Read more >VBox (JavaFX 8) - Oracle Help Center
A vbox's unbounded maximum width and height are an indication to the parent that it may be resized beyond its preferred size to...
Read more >Query examples | Objection.js
Note that you can chain debug() to any query to get the executed SQL ... The return value of the query method is...
Read more >Using the Spark Connector - Snowflake Documentation
Required Context Options ... The Snowflake connector tries to translate all the filters requested by ... The runQuery method returns only TRUE or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Although, at that point you wouldn’t need
Insetter
at all. You could just do:thanks that actually worked out well