Update BaseWidgets.js

adding effect but snaps bug for windows that can ragrandire