fix maximum length calculation in qml side
--the maximum length calculation in qml side was not calculated correctly for behabeAsPlasmaPanel flag