Feature: Change padding values at run time
See original GitHub issueat InlineCssTextArea
I need to set px
values by java code not css, what are the methods?
.styled-text-area .paragraph-box .paragraph-text { -fx-padding: 0px 0px 0px 0px; }
.styled-text-area .paragraph-box:last-paragraph .paragraph-text { -fx-padding: 0px 0px 0px 0px; }
.styled-text-area .paragraph-box:first-paragraph .paragraph-text { -fx-padding: 0px 0px 0px 0px; }
I tried:
setParagraphStyle(getCurrentParagraph(),"-fx-padding: 0px 0px 0px 10px;");
But I need to set other values, how can I do this?
Also do you have documents explaining the methods? Where?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
padding - CSS: Cascading Style Sheets - MDN Web Docs
The padding property may be specified using one, two, three, or four values. Each value is a <length> or a <percentage> .
Read more >padding | CSS-Tricks
Padding values are set using lengths or percentages, and cannot accept negative values. The initial, or default, value for all padding ...
Read more >How to Set CSS Margins and Padding (And Cool Layout Tricks)
Baljeet Rathi explains the use of CSS margins vs padding, the box model, bleeding and collapsing margins, and concludes with some cool ...
Read more >Add padding on view programmatically - android
Step 1: First, take the padding value as an integer. int padding = getResources().getDimensionPixelOffset ...
Read more >HTML DOM Style padding Property - W3Schools
The padding property sets or returns the padding of an element. This property can take from one to four values: Both the margin...
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 FreeTop 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
Top GitHub Comments
I agree (though it will take some work to do). I think this project supports a lot of CSS but doesn’t always provide a property that one can modify to change such a value at runtime.
I’m going to flag this is a feature request now. Please update the title to reflect that.
How deep do you want to go?
EventStream
andVal
/Var
are.See also
tags, which link to the important/foundational classes upon which others are built or to which they refer, in the following order:org.fxmisc.richtext.model
(the model),org.fxmisc.richtext
(the view),org.fxmisc.richtext.events/util
(miscellaneous things).integrationTest
package to get an idea for the API