@all,
if you find this thread via search, this coming feature of v13.0 might be interesting as well.
Best regards
Blama
Announcement
Collapse
No announcement yet.
X
-
The whole point of a hover is that it's a temporary element that disappears automatically.
If you want an element you can interact with, give the user somewhere to click, and open the same interface in a Window.
Leave a comment:
-
Hi,
Thanks, this fixed the overflow issue, however it now shows a useless scrollbar as I cannot focus on the hover element before it hides or gets destroyed.
Is there a way to allow the user to have focus on the hover element?
Leave a comment:
-
If you look at the docs for autoFitData, you can see that related properties autoFitMaxRecords or autoFitMaxHeight can be used to limit auto-fitting to a reasonable maximum.
Leave a comment:
-
ListGrid getCellHoverComponent overflow
SmartGWT version: v10.0p_2015-06-23/PowerEdition Deployment (built 2015-06-23)
GWT version: 2.5.1
Browser: IE 11
Hi Isomorphic,
We have a listGrid with an override on getCellHoverComponent, returning a new ListGrid:
LinksDetailViewer is:Code:@Override protected Canvas getCellHoverComponent(Record record, Integer rowNum, Integer colNum) { if (hoverComponent == null) { hoverComponent = (ListGrid) RPCManager.createScreen("LinksDetailViewer"); } hoverComponent.setHoverAutoDestroy(Boolean.FALSE); Criteria linksCriteria = new Criteria(); linksCriteria.addCriteria(C.OBJECTID, record.getAttributeAsInt(C.OBJECTID)); linksCriteria.addCriteria(C.LOGIDTO, 0); DSRequest requestProperties = new DSRequest(DSOperationType.FETCH); requestProperties.setShowPrompt(Boolean.FALSE); hoverComponent.fetchData(linksCriteria, new DSCallback() { @Override public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) { ; } }, requestProperties); return hoverComponent; }
As can be seen in the attached image, sometimes the amount of records returned with the cellHoverComponent fetch, creates a listgrid that overflows from the browser window.Code:<?xml version="1.0" encoding="UTF-8"?> <isomorphicXML xmlns:fmt="WEB-INF/"> <fmt:bundle basename="com.em.teco.server.Messages" /> <ListGrid ID="linksListGrid" dataSource="sprlinks" width="250" height="250"> <hoverMoveWithMouse>true</hoverMoveWithMouse> <keepInParentRect>true</keepInParentRect> <fetchOperation>fetchAllowedLinksByUsergroups</fetchOperation> <overflow>scroll</overflow> <autoFitData>vertical</autoFitData> <emptyMessage> <fmt:message key='pm.links.noinfo' /> </emptyMessage> <loadingMessage> <fmt:message key='pm.links.gettinginfo' /> </loadingMessage> <loadingDataMessage> <fmt:message key='pm.links.gettinginfo' /> </loadingDataMessage> <showHeader>false</showHeader> <fields> <ListGridField name="linkCaption" /> <ListGridField name="linkValue" /> </fields> </ListGrid> </isomorphicXML>
Is there a way to fix this keeping the getCellHoverComponent override point?
ThanksTags: None
Leave a comment: