Fix bug DNN-5127: update style to support small window.