Corrected width in Widget._getHeightForWidth when layout.hasHeightForWidth is true