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

Resize issue #5

Open
hoseyjoe opened this issue Apr 23, 2020 · 4 comments
Open

Resize issue #5

hoseyjoe opened this issue Apr 23, 2020 · 4 comments

Comments

@hoseyjoe
Copy link

When the application resizes their is no effect
launch the Main.hl and resize the application. No change. I have no direction for that

Also the default is black screen other targets are white

HTML after resize
image

HL after resize
image

Also notice in the Hl the "Random" button near bottom after resize isnt readable. That may be user error or becaus it originally rendered offscreen.

HaxeUITest.zip

@hoseyjoe
Copy link
Author

hoseyjoe commented Apr 9, 2021

Just need to tie into resize issue with

hxd.Window.getInstance().addResizeEvent(onResize);
var stage = hxd.Window.getInstance();

function onResize() {
var stage = hxd.Window.getInstance();
this.width = stage.width;
this.height = stage.height;
}

@hoseyjoe hoseyjoe closed this as completed Apr 9, 2021
@ianharrigan
Copy link
Member

ianharrigan commented Apr 10, 2021

Is your root object 100% w/h?

EDIT: whats "this" in your code above?

@ianharrigan ianharrigan reopened this Apr 10, 2021
@hoseyjoe
Copy link
Author

I can make a test project if it helps

This is the first line of xml

<vbox width="100%" height="100%">

This is MainView. I used the "new" example project style. Where class MainView extends VBox

package;

import haxe.ui.Toolkit;
import haxe.ui.HaxeUIApp;

class Main {
	public static function main() {
		Toolkit.theme = "dark";
		var app = new HaxeUIApp();
		app.ready(function() {
			app.addComponent(new MainView());

			app.start();
		});
	}
}

@ianharrigan
Copy link
Member

OK, ill test it out, but with 100% w/h i would certainly expect the resulting ui to take up all the space without having to manually update something might be that haxeui-heaps needs a tweak in that area.

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

2 participants