Closed
Bug 180134
Opened 22 years ago
Closed 21 years ago
NS_METHOD nsWindow::ConstrainPosition needs impelentation in BeOS
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sergei_d, Assigned: beos)
Details
Attachments
(1 file, 1 obsolete file)
2.87 KB,
patch
|
sergei_d
:
review+
|
Details | Diff | Splinter Review |
BeZilla users frequently complain about sitation when browser goes in fullscreen-like state (but F11 don't work), so they should remove localstore.rdf to restore normal size and position.
taking
Assignee: jaggernaut → arougthopher
Status: ASSIGNED → NEW
Comment on attachment 119927 [details] [diff] [review] implement constrainposition Sergei, can you review this?
Attachment #119927 -
Flags: review?(sergei_d)
Reporter | ||
Comment 5•21 years ago
|
||
That's good you proposed this. My current implementation of method was much simpler: { if (eWindowType_dialog != mWindowType && eWindowType_toplevel != mWindowType) return NS_OK; if(*aX <=0) *aX=2; if(*aY <=0) *aY=20; return NS_OK; } Probably your version is more intelligent. Will try it
this is based on the gtk version, and also uses the allowSlop boolean passed in
Updated patch: - Takes into account window borders and the title bar - these values are defined as constants, since BeOS does not provide them - the title bar height is the height of the tallest title bar under BeOS (that I can find) - Only deals with dialogs and windows now
Attachment #119927 -
Attachment is obsolete: true
Attachment #119927 -
Flags: review?(sergei_d)
Attachment #120041 -
Flags: review?(sergei_d)
Reporter | ||
Comment 8•21 years ago
|
||
Paul, it seems something happened when you created last patch, and it misses now both declaration of mIsTopWidgetWindow (nsWindow.h) and assignment of values to it, initiall, and real (nsWindow.cpp)
Reporter | ||
Comment 9•21 years ago
|
||
Another notice Paul, what do you think about changing style from foo { } to foo { } everywhere in BeOS code? Personally i can't stand first style...
Assignee | ||
Comment 10•21 years ago
|
||
nope, that variable existed before my original patch, but was never used. So I, since it was set the same way as the windows port, I backed out my "new" variable, and am using the previously "unused" variable. as far as style changes, personally, I don't care. I can read the code either way. I usually write my code using the first style, because I'm a java dev :- ) But, that doesn't mean i have to.
Reporter | ||
Comment 11•21 years ago
|
||
Comment on attachment 120041 [details] [diff] [review] updated patch Works well here, reviewing
Attachment #120041 -
Flags: review?(sergei_d) → review+
Assignee | ||
Comment 12•21 years ago
|
||
this has been checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•