fixed width bug by taking a fixed one.
The window can not know its full width so this workaround should do
Merge pull request #606 from henningmu/issue#589

fixed width bug by taking a fixed one.