ilan Expert Licensed User Longtime User Jun 28, 2022 #1 hi i try to show the text in the textarea node at the top left corner but it has a big padding. if i try to set padding to 0 nothing happens. how can i set it to be placed at the top left corner? thanx Attachments padding.zip padding.zip 2.6 KB · Views: 384 Last edited: Jun 28, 2022
hi i try to show the text in the textarea node at the top left corner but it has a big padding. if i try to set padding to 0 nothing happens. how can i set it to be placed at the top left corner? thanx
LucaMs Expert Licensed User Longtime User Jun 28, 2022 #2 That doesn't happen to me; can you attach a test project? Attachments TextAreaTest.zip TextAreaTest.zip 2 KB · Views: 400 Upvote 0
LucaMs Expert Licensed User Longtime User Jun 28, 2022 #3 Another question: do you see the same in the WYSIWYG form? Upvote 0
ilan Expert Licensed User Longtime User Jun 28, 2022 #4 LucaMs said: Another question: do you see the same in the WYSIWYG form? Click to expand... weird, in WYSIWYG it is fine Upvote 0
LucaMs said: Another question: do you see the same in the WYSIWYG form? Click to expand... weird, in WYSIWYG it is fine
TILogistic Expert Licensed User Longtime User Jun 28, 2022 #5 ?? CSS In design -fx-padding: 0 0 0 0 Click to expand... or by code B4X: Copy Private TextArea1 As B4XView .. .. CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "0 0 0 0") Last edited: Jun 28, 2022 Upvote 0
?? CSS In design -fx-padding: 0 0 0 0 Click to expand... or by code B4X: Copy Private TextArea1 As B4XView .. .. CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "0 0 0 0")
ilan Expert Licensed User Longtime User Jun 28, 2022 #6 Omar Parra A. said: ?? CSS Click to expand... nothing changes if i add this. Upvote 0
ilan Expert Licensed User Longtime User Jun 28, 2022 #7 i guess i have the same issue as this guy here: Start position text in textarea I have a textarea and in Designer in Extra CSS i put this: -fx-alignment: TOP; -fx-padding: 0px; but the result is this, why? I want to use all the space starting from the top Thanks www.b4x.com Upvote 0
i guess i have the same issue as this guy here: Start position text in textarea I have a textarea and in Designer in Extra CSS i put this: -fx-alignment: TOP; -fx-padding: 0px; but the result is this, why? I want to use all the space starting from the top Thanks www.b4x.com
TILogistic Expert Licensed User Longtime User Jun 28, 2022 #8 test with negative values. B4X: Copy CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "-1 0 0 0") Upvote 0
test with negative values. B4X: Copy CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "-1 0 0 0")
ilan Expert Licensed User Longtime User Jun 28, 2022 #9 Omar Parra A. said: test with negative values. B4X: Copy CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "-1 0 0 0") View attachment 130905 Click to expand... here it is not working. nothing changes when i add your code. not from the designer and not from the code. maybe JAVA version? Upvote 0
Omar Parra A. said: test with negative values. B4X: Copy CSSUtils.SetStyleProperty(TextArea1.As(TextArea), "-fx-padding", "-1 0 0 0") View attachment 130905 Click to expand... here it is not working. nothing changes when i add your code. not from the designer and not from the code. maybe JAVA version?
TILogistic Expert Licensed User Longtime User Jun 28, 2022 #10 ilan said: here it is not working. nothing changes when i add your code. not from the designer and not from the code. maybe JAVA version? Click to expand... I use the version C:\Java\java-11.0.1\bin\javac.exe and Upvote 0
ilan said: here it is not working. nothing changes when i add your code. not from the designer and not from the code. maybe JAVA version? Click to expand... I use the version C:\Java\java-11.0.1\bin\javac.exe and
ilan Expert Licensed User Longtime User Jun 28, 2022 #11 Omar Parra A. said: I use the version C:\Java\java-11.0.1\bin\javac.exe Click to expand... ok just downloaded again the source from the b4j download page and result is the same. it is really strange that it is working for everybody and not for some users. Upvote 0
Omar Parra A. said: I use the version C:\Java\java-11.0.1\bin\javac.exe Click to expand... ok just downloaded again the source from the b4j download page and result is the same. it is really strange that it is working for everybody and not for some users.
TILogistic Expert Licensed User Longtime User Jun 28, 2022 #12 ??? This is already a question for @Erel Upvote 0
ilan Expert Licensed User Longtime User Jun 28, 2022 #13 ok i found the toublemaker. i am using at this class B4XDialog. as soon as i disable it i dont even need to add any CSS. B4XDialog is creating this behavior. will try to create a simple example that shows it Upvote 0
ok i found the toublemaker. i am using at this class B4XDialog. as soon as i disable it i dont even need to add any CSS. B4XDialog is creating this behavior. will try to create a simple example that shows it
ilan Expert Licensed User Longtime User Jun 28, 2022 #14 i have uploaded an example project to post #1. it has definitely something to do with the B4XDialog object. is there a workaround? Upvote 0
i have uploaded an example project to post #1. it has definitely something to do with the B4XDialog object. is there a workaround?
TILogistic Expert Licensed User Longtime User Jun 28, 2022 #15 B4Xdialog Css is changing TeaxArea padding see: Dialog.css CSS: Copy .text-area .content { -fx-padding: 15 5 5 5; } Upvote 1
B4Xdialog Css is changing TeaxArea padding see: Dialog.css CSS: Copy .text-area .content { -fx-padding: 15 5 5 5; }
ilan Expert Licensed User Longtime User Jun 28, 2022 #16 Omar Parra A. said: B4Xdialog Css is changing TeaxArea padding see: Dialog.css CSS: Copy .text-area .content { -fx-padding: 15 5 5 5; } Click to expand... yes just saw it too. but why is it not changeable? anyway i changed it in the b4xlib and now everything is fine. thank you a lot @Omar Parra A. ? ? ? Last edited: Jun 28, 2022 Upvote 0
Omar Parra A. said: B4Xdialog Css is changing TeaxArea padding see: Dialog.css CSS: Copy .text-area .content { -fx-padding: 15 5 5 5; } Click to expand... yes just saw it too. but why is it not changeable? anyway i changed it in the b4xlib and now everything is fine. thank you a lot @Omar Parra A. ? ? ?