I'm using following code to resize my TextureFrame:
var window_size = OS.get_window_size()
self.frame.set("rect/size", window_size)
this works when I'm enlarging my window, but it doesn't work when I'm trying to shrink the window, it goes like this:

(the TextureFrame is that black frame)