Page MenuHomePhorge

D25272.1734690889.diff
No OneTemporary

D25272.1734690889.diff

diff --git a/src/view/phui/PHUISegmentBarSegmentView.php b/src/view/phui/PHUISegmentBarSegmentView.php
--- a/src/view/phui/PHUISegmentBarSegmentView.php
+++ b/src/view/phui/PHUISegmentBarSegmentView.php
@@ -26,6 +26,11 @@
return $this;
}
+ /**
+ * Set a Tooltip.
+ * @param string|null $tooltip
+ * @return self
+ */
public function setTooltip($tooltip) {
$this->tooltip = $tooltip;
return $this;
@@ -55,7 +60,7 @@
$left = sprintf('%.2f%%', $left);
$tooltip = $this->tooltip;
- if (strlen($tooltip)) {
+ if (phutil_nonempty_string($tooltip)) {
Javelin::initBehavior('phabricator-tooltips');
$sigil = 'has-tooltip';

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 10:34 (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016976
Default Alt Text
D25272.1734690889.diff (683 B)

Event Timeline