ArthurTep wrote:
Small modification:
will be fixed in next minor release.Does not work for me, because MaximumSize can be 0, so Size will be 0 x 0.
as a quick fix you can change the set of ToolTipSize in HtmlToolTip.OnToolTipPopup method to://Set the size of the tooltip e.ToolTipSize = new Size((int)Math.Ceiling(Math.Min(_htmlContainer.ActualSize.Width, MaximumSize.Width)), (int)Math.Ceiling(Math.Min(_htmlContainer.ActualSize.Height, MaximumSize.Height)));
Small modification:
//Set the size of the tooltip
var desiredWidth = (int)Math.Ceiling(MaximumSize.Width > 0 ? Math.Min(_htmlContainer.ActualSize.Width, MaximumSize.Width) : _htmlContainer.ActualSize.Width);
var desiredHeight = (int)Math.Ceiling(MaximumSize.Height > 0 ? Math.Min(_htmlContainer.ActualSize.Height, MaximumSize.Height) : _htmlContainer.ActualSize.Height);
e.ToolTipSize = new Size(desiredWidth, desiredHeight);