Still trying to fix margin pos (works on ubuntu now, need to test on kde, windows and mac)