Update BaseWidgets.js

adding effect but snaps bug for windows that can bigger