Changeset View
Changeset View
Standalone View
Standalone View
src/view/control/AphrontTableView.php
Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | final class AphrontTableView extends AphrontView { | ||||
public static function renderSingleDisplayLine($line) { | public static function renderSingleDisplayLine($line) { | ||||
// TODO: Is there a cleaner way to do this? We use a relative div with | // TODO: Is there a cleaner way to do this? We use a relative div with | ||||
// overflow hidden to provide the bounds, and an absolute span with | // overflow hidden to provide the bounds, and an absolute span with | ||||
// white-space: pre to prevent wrapping. We need to append a character | // white-space: pre to prevent wrapping. We need to append a character | ||||
// ( -- nonbreaking space) afterward to give the bounds div height | // ( -- nonbreaking space) afterward to give the bounds div height | ||||
// (alternatively, we could hard-code the line height). This is gross but | // (alternatively, we could hard-code the line height). This is gross but | ||||
// it's not clear that there's a better appraoch. | // it's not clear that there's a better approach. | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'single-display-line-bounds', | 'class' => 'single-display-line-bounds', | ||||
), | ), | ||||
array( | array( | ||||
phutil_tag( | phutil_tag( | ||||
Show All 11 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0