SixFullBars.com Dashboard

write/31 What is this? Show me how to connect

... | ...
529 | 529
530 | 530
531 | 531
532 |
| 533
534 | 534
535 | 535
536 | 536
| 537
| 538
| 539
540 | 540
541 | 541
542 | 542
// Collapse margins if required
$this->_collapse_margins();
-
+
$style = $this->_frame->get_style();
$cb = $this->_frame->get_containing_block();
+ //Check for if there's a print remainder, if so, remove the starting indent
+ if($this->_frame->get_dompdf()->get_remainder()) {$style->text_indent = '0';}
+
// Determine the constraints imposed by this frame: calculate the width
// of the content area:
list($w, $left_margin, $right_margin, $left, $right) = $this->_calculate_restricted_width();
... | ...
169 | 169
170 | 170
171 | 171
172 |
| 173
| 174
| 175
| 176
177 | 177
178 | 178
179 | 179
... | ...
638 | 641
639 | 642
640 | 643
| 644
| 645
| 646
644 | 647
*/
protected $_protocol;
-
+
+ protected $_remainder = false;
+
+
/**
* Class constructor
*/
}
}
+ public function get_remainder() {return $this->_remainder;}
+ public function set_remainder($b) {$this->_remainder = $b;}
+
}
... | ...
167 | 167
168 | 168
169 | 169
| 170
171 | 171
172 | 172
173 | 173
if ( $p instanceof Inline_Frame_Decorator )
$p->split($deco);
+ //$this->_dompdf->set_remainder(true);
}
//........................................................................
... | ...
264 | 264
265 | 265
266 | 266
267 |
268 |
| 269
| 270
| 271
272 | 272
273 | 273
274 | 274
275 | 275
276 | 276
| 277
278 | 278
279 | 279
280 | 280
... | ...
285 | 287
286 | 288
287 | 289
| 290
289 | 291
290 | 292
291 | 293
... | ...
296 | 299
297 | 300
298 | 301
299 |
| 303
| 304
302 | 305
303 | 306
304 | 307
... | ...
308 | 312
309 | 313
310 | 314
311 |
| 316
313 | 317
314 | 318
315 | 319
}
// Handle degenerate case
- if ( $text === "" )
- return;
+ if ( $text === "" ) {
+ $this->_frame->get_dompdf()->set_remainder(false);
+ return;}
if ( $split !== false) {
// Handle edge cases
if ( $split == 0 && $text === " " ) {
+ $this->_frame->get_dompdf()->set_remainder(false);
$this->_frame->set_text("");
return;
}
// Layout the new line
$this->_layout_line();
+ $this->_frame->get_dompdf()->set_remainder(true);
} else if ( $split < mb_strlen($this->_frame->get_text()) ) {
if ( $split > 1 && $t[$split-1] === "\n" )
$this->_frame->set_text( mb_substr($t, 0, -1) );
-
+
+ $this->_frame->get_dompdf()->set_remainder(false);
}
if ( $add_line ) {
$this->_frame->recalculate_width();
} else {
-
+ $this->_frame->get_dompdf()->set_remainder(false);
$this->_frame->recalculate_width();
}