question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Change padding values at run time

See original GitHub issue

at 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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JordanMartinezcommented, May 3, 2018

I think it’s important to add something like this (change the values at runtime).

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.

1reaction
JordanMartinezcommented, May 3, 2018

Do you also have documents or books explaining classes and methods? I’m a beginner in rich text fx and I want to learn. Thank you

How deep do you want to go?

  • Shallowest understanding
    • Read through every page listed in the sidebar on the wiki, excluding a few irrelevant ones (i.e. “Adding Emojis” and “Known Issues”). Some things documented here might be out of date, but it’ll give you a general starting place for terminology and whatnot.
  • Somewhat deeper understanding
    • Read through a tutorial I wrote for ReactFX that explains what EventStream and Val/Var are.
    • Read each package’s javadoc and their 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).
  • Deeper understanding
    • Look through the tests in the integrationTest package to get an idea for the API
    • Check out all of RichTextFX’s dependencies as that will help you understand how it works. Besides ReactFX, Flowless is the next important. UndoFX and WellBehavedFX can be studied only when necessary.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found