1. Update margins when maximized for the examples 2. Prepare for the UNIX version of utility functions Signed-off-by: Yuhang Zhao <2546789017@qq.com>