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
Arbitrary positioning of a view #3812
Comments
Hi @3rror404, main-page.xml
main-page.ts
In the example, the important part is to setup the row for the first label to be the same as the second TextView row. You could also review |
Hi @tsonevn, thanks for the suggestion. I was really hoping to be able to do this without relying on one of the Layouts for positioning. Is it simply not possible to do this using |
Hi @3rror404,
TypeScript
|
Thanks @tsonevn. I appreciate the suggestions but having the error message within the markup was not a viable solution for me. I've found that you can use
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I've been struggling with something for a few days now. I can't seem to find an example of what I am trying to do anywhere so I'm not really sure I'm taking the right approach.
I need to be able to position an element/layout (created with JS) at an arbitrary position within another element.
In this example, I need to position the
Label
within theStackLayout
XML
JS
I've made a number of attempts at solving this myself but can't seem to find anything that works.
AbsoluteLayout
as a wrapper.. This won't work because I need to be able to interact with other elements below theAbsoluteLayout
.frame.origin
of the native view.myLabel.layout(x, y, x, y)
but this doesn't seem to have any effect.I'm actually trying to produce a text input validation message like the image below. the green box is the
AbsoluteLayout
that prevents interaction with the other page elements.I can't use option 1 because of the reasons stated in that post. I've no idea if options 1 or 2 can be used to achieve this as I can't find any examples of using either.
Can anyone help me out with this?
The text was updated successfully, but these errors were encountered: