[NUI] Fix extents issue and unified style format (#1287)