Fixed floating image layout when typing in subsequent paragraph

Now makes use of max size for images and keeps the image size reasonable
Added original image size so can usually avoid reloading image when recomputing
cached bitmap size
Takes into account bottom of the last floating image so scrollbars are
set correctly
Original image size is shown in disabled size controls


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2012-04-25 11:42:31 +00:00
parent c6182d489c
commit 23698b123b
4 changed files with 194 additions and 37 deletions

View File

@@ -3971,6 +3971,16 @@ public:
*/
wxRichTextImageBlock& GetImageBlock() { return m_imageBlock; }
/**
Gets the original image size.
*/
wxSize GetOriginalImageSize() const;
/**
Sets the original image size.
*/
void SetOriginalImageSize(const wxSize& sz);
// Operations
/**