On OSX don't propogate the alignment setting from column to renderer if it is a custom renderer. This allows the Render function to deal with the alignment itself and brings the behavior into alignment (pun intended!) with the GTK and generic DV classes. Fixes #12883
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,6 +159,9 @@ public:
|
||||
|
||||
wxControl *GetEditorCtrl() { return m_editorCtrl; }
|
||||
|
||||
virtual bool IsCustomRenderer() const { return false; }
|
||||
|
||||
|
||||
protected:
|
||||
// Called from {Cancel,Finish}Editing() to cleanup m_editorCtrl
|
||||
void DestroyEditControl();
|
||||
@@ -278,6 +281,8 @@ public:
|
||||
// Prepare DC to use attributes and call Render().
|
||||
void WXCallRender(wxRect rect, wxDC *dc, int state);
|
||||
|
||||
virtual bool IsCustomRenderer() const { return true; }
|
||||
|
||||
protected:
|
||||
// helper for GetSize() implementations, respects attributes
|
||||
wxSize GetTextExtent(const wxString& str) const;
|
||||
|
Reference in New Issue
Block a user