taskpanel: Use the form factor to define the position we are on
Instead of the panel state itself. That would arrive at different points in the event and sometimes plasma would set the offset to the horizontal panel. This should remove this case by only setting the offset when the panel is in the state that needs it.