cLock: optimize widget display if parts are not visible

Change-Id: Icc49411b20f27d9ae254ce672e36cb87f2a1602e