Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JavaFX-Part 4] Update FXML of DialogBox #22

Open
JiaXinEu opened this issue Jun 25, 2024 · 8 comments
Open

[JavaFX-Part 4] Update FXML of DialogBox #22

JiaXinEu opened this issue Jun 25, 2024 · 8 comments

Comments

@JiaXinEu
Copy link
Contributor

Current:

image

Problem:

Text overrun may occur, and longer text will not be fully displayed but replaced with ellipsis instead.

Proposed:

Replace line with:

<Label fx:id="dialog" text="Label" wrapText="true" minHeight="-Infinity">
@damithc
Copy link
Contributor

damithc commented Jul 4, 2024

@flexibo any thoughts on this suggestion? I remember this aspect came up during the writing of part 5.

@flexibo
Copy link
Contributor

flexibo commented Jul 4, 2024

@JiaXinEu @damithc ah yes, IIRC the issue is also fixed by removing the prefHeight for VBox. Either way works, will be great to update it in part 4.

@damithc
Copy link
Contributor

damithc commented Jul 5, 2024

@flexibo Thanks for the inputs.
@JiaXinEu You can send a PR for this. It may be better to keep the original, point out the problem, and provide the two possible solutions.

@JiaXinEu
Copy link
Contributor Author

JiaXinEu commented Jul 5, 2024

Ok, submitted PR #37

@flexibo
Copy link
Contributor

flexibo commented Jul 9, 2024

@damithc @JiaXinEu Actually I was wondering if it is better to just replace that line altogether using either one of the solutions (can just use JiaXinEu's solution). It might be a lot clearer for the students this way and avoid any confusion.

@damithc
Copy link
Contributor

damithc commented Jul 9, 2024

It might be a lot clearer for the students this way and avoid any confusion.

I'm fine with that too.
Normally I prefer for students to learn about a problem and also how to solve it (rather than not encounter it at all) but this specific problem is not that important, so OK to avoid it entirely.

@JiaXinEu
Copy link
Contributor Author

JiaXinEu commented Jul 9, 2024

I have sent a PR based on this. #37

It may be better to keep the original, point out the problem, and provide the two possible solutions.

Perhaps I can create another PR for this so we can decide on which is better?

replace that line altogether using either one of the solutions

@damithc
Copy link
Contributor

damithc commented Jul 9, 2024

Perhaps I can create another PR for this so we can decide on which is better?

Sure @JiaXinEu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants