Sticky positioning is only working in Studio preview mode but not in codegen?

Hello the sticky positioning is only working on the preview mode in the studio and not in the codegen is there an issue ?!