-
Notifications
You must be signed in to change notification settings - Fork 696
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
Fixes #3273. Updates FindDeepestView
to support Adornment
#3278
Conversation
@BDisp please check this out. Adornment now handles is completed, any View will support move/sizing. For now, I've hacked in at test for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙂
I need the missing the out parameters. Now I can't have the subviews on adornmemts working anymore. I hope you fix that before the dragging feature. |
I don't recall what you mean by "the out parameters." Please remind me. |
Surely. When you refactored |
Right. What you're needing, and what I'll get you asap, is for
|
Yes I know. I already I'm using it but but with no success for now. Thanks. |
What did you try? Have you merged this PR into yours? Or, are you just trying an experiment on a fork of this PR? |
No, I just trying to merge the v2_develop branch into my PR #3254 and using some code you are using on this PR but I cannot make it work as before, because I can't send the right coordinates to the Padding's subview on the MouseEvent.
No, because none of yours WIP PR or the already merged one handles subviews into adornments. It's working fine to deal with adornments but not with subviews in adornments. |
Just to bubble up what's going on so we're on the same page:
|
@BDisp, you can now re-target #3254 to this branch! You will likely need to revert a bunch of little things you did to I bet if you starrt with the |
fbcff15
to
714121b
Compare
Fuck. I screwed something up trying to rebase. Arrrrrggg!!! |
If either of you pulled this branch down yesterday afternoon PLEASE DON'T DELETE IT. I somehow completely clobbered this PR trying rebase and everything I did yesterday is GONE. I have an older version at home, but it's missing everythign I did yesterday! |
Sorry @tig I didn't pull it. See if you have some stash you can recover from. |
Fuck. My branch on my home computer was last updated 3/1. That's 4 fraking days of REALLY GREAT (if I say so myself) work, GONE. |
Back! Yay. |
Yay. Yeah, your remote will always have whatever you last pushed to it until you force push over it. Handy in case you do something unfortunate or even if you simply want to try doing it another way, like maybe squashing or re-ordering a few commits. Another option, however, that is much safer, is that, instead of force pushing over the original branch, change the remote branch name and push to an entirely new branch. That won't be a force push and you can then hold on to your old branch until you feel safe to just delete it altogether. I generally don't pull anything from non-origin forks except explicitly to test or debug something. Although doing so is less dirty now than it was before fixing the merge strategy. When I do, though, I clone my working copy to a dedicated folder. While that's not really necessary, it is easier (read: lazier 😅) than pulling the remote fork branch to my repo and ensuring everything is properly committed/stashed/etc before that. I also will sometimes copy my local repo if I'm about to do something I'm either unsure of or that risks losing work, so that rolling back the operation is as simple as deleting the working copy and copying the backup copy back to the original location. Then I don't have to think so much about how to undo something or what commit is proper to reset to or what kind of reset is correct, or whatever. |
Fixes
FindDeepestView
to supportAdornment
#3273Is dependent on
MouseEvent/OnMouseEvent
are stoopid #3281See also:
Proposed Changes/Todos
Modify
FindDeepestView
to returnMargin
,Padding
, orBorder
ifx
/y
match.Add
MouseEvent
handling code toAdornment
,Margin
,Border
, andPadding
as appropriate (e.g.Adornment.MouseClick += Parent.SetFocus()
).Add more
FindDeepestView
unit tests to prove this change works.Move drag support out of
Toplevel
intoAdornment
- Dragging margin or border drags the view.Drag support is not quite right - dragging anywhere on border.Thickness SHOULD work, but only top does
Add support for
Adornment.SubViews
Computed Layout for
Adornment.SubViews
is not working right always.e.g.
var btnButtonInPadding = new Button { X = Pos.Center (), Y = Pos.Center (), Text = "_Button in Padding" };
inAdornments
scenario doesn't work (the Y =).Figure out best place for adornments to add their own subviews. Can't do it in constructor or
Initialized
event.Add a prototype Close button to Border - partially implemented.
Focus on a
Adornment.SubView
is not working.When a subview of an
Adornment
gets focus,Adornment.Parent
should get focus.Adjusting
Adornment.Thickness
needs to re layout subviewsPositive Thicknesses in
Adornment.Subviews
is brokenPull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)