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

Attach property not working on SubForm or Edit fields #344

Open
mkromberg opened this issue Jan 9, 2025 · 1 comment
Open

Attach property not working on SubForm or Edit fields #344

mkromberg opened this issue Jan 9, 2025 · 1 comment
Milestone

Comments

@mkromberg
Copy link
Collaborator

Run DemoTabs. Note that the TabControl and each Edit field is defined using Attach:

{"WC":{"ID":"F1.TC","Properties":{"Attach":["Top","Left","Bottom","Right"],"MultiLine":1,"Posn":[100,0],"Size":[500,600],"Type":"TabControl"}}}
and
{"ID":"F1.TC.SF2.TEXT","Properties":{"Attach":["Top","Left","Bottom","Right"],"Font":["Times New Roman",16],"Posn":[10,10],"Size":[450,580],"Style":"Multi","Text":"Lorem ipsum ...con","Type":"Edit"}}}

However, when the form is resized, neither the TabControl nor the Edit field honour the Attach property.

The current callback on Configure of the form corrects this:

{"WS":{"ID":"F1.TC","Properties":{"Size":[500,600]}}}
{"WS":{"ID":"F1.TC.SF1.TEXT","Properties":{"Size":[450,580]}}}
...etc...

But it should be unnecessary, as they should already have these sizes.

@mkromberg mkromberg added this to the Priority 1 milestone Jan 9, 2025
@mkromberg
Copy link
Collaborator Author

Related to #97 Support the Attach Property.

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

1 participant