* @var string
*/
public $styles = '';
+
+ /**
+ * current scroll offset before submitting the form
+ * @var integer
+ */
+ public $stylesScrollOffset = 0;
/**
* @inheritDoc
if (isset($_POST['styles'])) {
$this->styles = StringUtil::unifyNewlines(StringUtil::trim($_POST['styles']));
}
+ if (isset($_POST['stylesScrollOffset'])) {
+ $this->stylesScrollOffset = intval($_POST['stylesScrollOffset']);
+ }
}
/**
parent::assignVariables();
WCF::getTPL()->assign([
- 'styles' => $this->styles
+ 'styles' => $this->styles,
+ 'stylesScrollOffset' => $this->stylesScrollOffset,
]);
}
}