after much more tests, i found the real problem.
i changed the size before take off the window border. what i mean is the buttons(minimizate/close/maximizate/menu) give the window a minium size. so how resolve that?!? i change the order: take off the border and then i resize the window.
now works fine thanks for all