Changed preview fragment layout measurement method