-
Notifications
You must be signed in to change notification settings - Fork 517
8337656 iOS WebView Position #1526
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
8337656 iOS WebView Position #1526
Conversation
Fixing position of WebView on ios
Added missing import
👋 Welcome back fkirmaier! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
The proper positioning of the WebView is the last thing missing for us to go for a release. Would be great to know whether we can use the WebView for displaying YouTube videos or not. Any support in this area would be much appreciated. |
Just some more Feedback. |
The bug can be tested by running the jfxcentral app on ios. The project is completely configured and can be quickly installed on your phone via the standard GluonFX plugin. The bug becomes visible when opening Frank's tutorial for an "LED strip with a JavaFX UI". |
@FlorianKirmaier This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
@FlorianKirmaier This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
@dlemmermann |
For the fix I am adding a listener to the localToSceneTransform property. Every time this changes I invoke code to "fix" the location: webView.localToSceneTransformProperty().addListener((obs, oldV, newV) -> fixIt(view))); The actual fix is done like this: boolean fixing = false;
private void fixIt(WebView view) {
if (!fixing) {
fixing = true;
view.setLayoutY(view.getLayoutY() + 1);
double width = view.getWidth();
double height = view.getHeight();
view.resize(width + 1, height + 1);
view.resize(width, height);
Platform.runLater(() -> fixing = false);
}
} |
@johanvos @jperedadnr the code can be found in the jfxentral2 repository: https://github.com/dlsc-software-consulting-gmbh/jfxcentral2/blob/9f2c50ff54f37c97e2eadef1dbad8dd61d03acc6/components/src/main/java/com/dlsc/jfxcentral2/components/CustomMarkdownView.java#L54 |
Fixing WebView on iOS
(I couldn't compile it because I don't know how to build it for iOS, but the code should be correct.)
@johanvos
If this looks reasonable to you, can you provide a test build for @dlemmermann ?
Then he can test it with his JFX-Central iOS version.
Progress
Integration blocker
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1526/head:pull/1526
$ git checkout pull/1526
Update a local copy of the PR:
$ git checkout pull/1526
$ git pull https://git.openjdk.org/jfx.git pull/1526/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1526
View PR using the GUI difftool:
$ git pr show -t 1526
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1526.diff
Webrev
Link to Webrev Comment