Support to miniwindow margin, fix protocollogin connectCallback, pt translation