Page MenuHomePhorge

D25272.1737379540.diff
No OneTemporary

D25272.1737379540.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
Mon, Jan 20, 13:25 (21 h, 10 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129233
Default Alt Text
D25272.1737379540.diff (683 B)

Event Timeline