Ticket #3035: Resize.diff
File Resize.diff, 1.1 KB (added by , 16 years ago) |
---|
-
src/kits/tracker/WidgetAttributeText.h
357 357 protected: 358 358 virtual void FitValue(BString *result, const BPoseView *); 359 359 virtual int64 ReadValue(); 360 virtual float PreferredWidth(const BPoseView *) const; 360 361 361 362 const BPoseView *fPoseView; 362 363 BString fRelationText; -
src/kits/tracker/WidgetAttributeText.cpp
1772 1772 } 1773 1773 1774 1774 1775 float 1776 OpenWithRelationAttributeText::PreferredWidth(const BPoseView *pose) const 1777 { 1778 BString widthString; 1779 TruncString(&widthString, fRelationText.String(), fRelationText.Length(), pose, 1780 100000, B_TRUNCATE_END); 1781 return pose->StringWidth(widthString.String()); 1782 } 1783 1784 1775 1785 void 1776 1786 OpenWithRelationAttributeText::FitValue(BString *result, const BPoseView *view) 1777 1787 {