Closed sebthom closed 8 years ago
Im not quite sure i follow... Do you have some example code / xml of what you mean?
Ah, although, looking at the impl for Link i think i can see what is happening - some example code would be good though anyway, just to make sure im understanding the problem
try to click the link in this example. It will open the URL in the browser.
<?xml version="1.0" encoding="UTF-8"?>
<stack width="100%" height="100%">
<vbox width="100%" height="100%">
<button text="hello" />
</vbox>
<vbox width="100%" height="100%">
<link text="http://archive.org/" style="fontSize:30" />
</vbox>
</stack>
Is there any easy workaround for this?
Ill take a look at this over the weekend.
Should be fixed now
Looks like there is another corner case: The link is in a scroll view and fully or partially outside the scroll area, directly below the scroll view is a button. When you click the button while the URL is located below it, the link will open.
Examples:
Hmmm, yeah... good catch...
Should be fixed now: http://haxeui.org/try.jsp?layoutId=np8pn7d
Works. Thanks!
When a link is for example hidden/overlayed by button (e.g. because of a stackview, scrollview) and one clicks the button the click event is also passed on to the hidden link and the browser is opened. Using event.stopPropagation or stopImmediatePropagation in the buttons event handler does not help.