Commit db6f4abc authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3659 / Bootstrap default view: 'small' - fixed. By default...

 #3659 / Bootstrap default view: 'small' - fixed. By default '--viewport-size=1280x1024' will be set to wkhtml. This moves BS rendering 'xs' to 'md'.
parent 823e55aa
......@@ -945,3 +945,5 @@ const TOKEN_CLASS_NONE = 'n';
const TOKEN_CLASS_INTERNAL = 'i';
const TOKEN_CLASS_EXTERNAL = 'e';
const WKHTML_OPTION_VIEWPORT = '--viewport-size';
const WKHTML_OPTION_VIEWPORT_VALUE = '1280x1024';
\ No newline at end of file
......@@ -124,6 +124,7 @@ class Html2Pdf {
*/
private function splitParam($urlParamString, array &$rcArgs, &$rcSipEncode) {
$urlParamNew = array();
$rcArgs[WKHTML_OPTION_VIEWPORT] = WKHTML_OPTION_VIEWPORT_VALUE; // Forces wkhtml to render Bootstrap page in 'md', not 'xs'
$urlParam = KeyValueStringParser::parse($urlParamString, '=', '&', KVP_IF_VALUE_EMPTY_COPY_KEY);
foreach ($urlParam as $key => $value) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment