fix review comments

This commit is contained in:
liusi 2016-11-08 15:36:37 +08:00
parent 0e9d973715
commit a69ee76705

View file

@ -571,8 +571,9 @@ void NativeWindowViews::SetContentSizeConstraints(
void NativeWindowViews::SetResizable(bool resizable) {
#if defined(OS_WIN)
FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME);
thick_frame_ = resizable;
if(has_frame()) {
FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME);
}
#elif defined(USE_X11)
if (resizable != resizable_) {
// On Linux there is no "resizable" property of a window, we have to set
@ -594,7 +595,7 @@ void NativeWindowViews::SetResizable(bool resizable) {
bool NativeWindowViews::IsResizable() {
#if defined(OS_WIN)
if (thick_frame_) {
if (has_frame()) {
return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME;
} else {
return CanResize();