File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ void NativeWindowWin::SetSize(const gfx::Size& size) {
321321}
322322
323323gfx::Size NativeWindowWin::GetSize () {
324- return window_->size ();
324+ return window_->GetWindowBoundsInScreen (). size ();
325325}
326326
327327void NativeWindowWin::SetMinimumSize (int width, int height) {
@@ -358,11 +358,12 @@ void NativeWindowWin::SetPosition(const std::string& position) {
358358}
359359
360360void NativeWindowWin::SetPosition (const gfx::Point& position) {
361- window_->SetPosition (position);
361+ gfx::Rect bounds = window_->GetWindowBoundsInScreen ();
362+ window_->SetBounds (gfx::Rect (position, bounds.size ()));
362363}
363364
364365gfx::Point NativeWindowWin::GetPosition () {
365- return window_->bounds ().origin ();
366+ return window_->GetWindowBoundsInScreen ().origin ();
366367}
367368
368369void NativeWindowWin::FlashFrame (bool flash) {
You can’t perform that action at this time.
0 commit comments