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

Size pref mixin #298

Merged
merged 2 commits into from Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions gui-doc/scribblings/framework/frame.scrbl
Expand Up @@ -232,11 +232,11 @@
height. The preferences key is the one passed
to the initialization argument of the class.
}
@defmethod[#:mode override (on-move (width position-integer?)
(height position-integer?))
@defmethod[#:mode override (on-move (x position-integer?)
(y position-integer?))
void?]{
Updates the preferences according to the width and
height, if @racket[position-preferences-key] is not @racket[#f], using
Updates the preferences according to the x,y position,
if @racket[position-preferences-key] is not @racket[#f], using
it as the preferences key.
}
}
Expand Down
4 changes: 2 additions & 2 deletions gui-lib/framework/private/frame.rkt
Expand Up @@ -363,8 +363,8 @@
(if (and l t mw mh)
(values (- delta-x l)
(- delta-y t)
(and (<= 0 l mw)
(<= 0 t mh)))
(and (<= l mw)
(<= t mh)))
(values #f #f #f))]
[else
(values #f #f #f)]))
Expand Down