Closed Helgiii closed 6 years ago
Hi,
Is it possible you have a small sample that displays the problem? Im not 100% sure i understand what you mean.
Cheers, Ian
ok I'll try making a sample app
here's a live example I made to reproduce this issus.. http://oleg-vorontsov.com/tests/haxe/textinput/frame-container.html also it only reproduces in google chrome, in firefox its all right and the source code http://oleg-vorontsov.com/tests/haxe/src-textinput.zip
wow, thats super strange. Wonder if its an openfl only issue. Will check it out - thanks for the example.
what does you html page look like (code wise), when i run the project i just get:
So presumably that live version is different. Just want to sync to understand it.
Ian
If you wonder about the bg color being different, yep it's was a small difference I've just updated the src.zip and the live version.
Additional used html files are in the bin/html5/bin in the zip file index-game.html differes from original index.html that the IDE generated
This seems to be an openfl issue: I replace all the code in your UiTest class with:
var tf:TextField = new TextField();
tf.type = TextFieldType.INPUT;
tf.selectable = true;
tf.mouseEnabled = true;
tf.autoSize = TextFieldAutoSize.NONE;
tf.multiline = true;
tf.wordWrap = true;
tf.text = "OpenFL TextField";
Lib.current.stage.addChild(tf);
And the same thing occurs. That doesnt use HaxeUI anymore and just OpenFL. It might make sense to create an openfl only version of the issue and see if anyone on the forurms can help? i took a quick look to see if it was anything obvious and couldnt see much. I wonder if it is to do with only when using it in a frame, or using actuate? No sure.
Ian
ok thanks! i'll add (copy) this issue to openfl page then https://github.com/openfl/openfl/issues/1940
so my game is a frame inside another site.. and when I click on a textfield to input some data to customize game params inside game the page scrolls down so It's pretty impossible to use at the moment. whenever you click inside textfields the page scrolls down and the textinput becomes not reachable((