Forum > Carbon
(SOLVED) Merge cells example bug?!
xinyiman:
He did not solve. But I do not understand a thing, if you look at the image 3 you will see that the right and the bottom of R are really great. Does not it seem strange?
wp:
Ah, uninitialized variable! Try this
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TMCStringGrid.DoEditorShow;var R: TRect;begin inherited; if (goColSpanning in Options) and Assigned(Editor) then begin R := CellRect(Col, Row); CalcCellExtent(Col, Row, R); Editor.SetBounds(R.Left, R.Top, R.Right-R.Left-1, R.Bottom-R.Top-1); end;end;
xinyiman:
Perfect. Thank you
wp:
Applied to trunk. Thanks for reporting.
Navigation
[0] Message Index
[*] Previous page