Open krishnauppili opened 4 years ago
CSS issue existing in thumbnail.To add below in css page
.thumbnailElement
{float:left; width:85px; margin:5px; padding:3px; border:5px solid #999999; color:#333333;}
{clear:both; text-align:center;}
.thumbnailElement {
position:absolute;
top: 17px;
left: -70;
border-bottom-width: 1px;
right: 0px;
bottom: 200px;
width: 100px;
min-height: 25px;
overflow-y: auto;
overfloy-x: auto;
float:right;
border: 5px solid red;
box-sizing: border-box;
} .thumbnailElement:hover { border: 1px solid #777; } .thumbnailElement a img { width: 68px; height: 52px; margin-right: 5px; }
.thumbnailElement div { padding: 10px;
}
@medcornsasa It does still exist. By thumbnailElement class you mean .thumbnail-item or .thumbnail-list?
Please find the existing code in the sandbox link : https://codesandbox.io/s/jolly-flower-dwfm1?fontsize=14&hidenavigation=1&theme=dark
No issue in scroll
Below css try it(see image) .
div[id^="thumbnail-list"]
.thumbnailElement
{float:left; width:85px; margin:5px; padding:3px; border:5px solid #999999; color:#333333;}
{clear:both; text-align:center;}
.thumbnail-selector {
position:absolute;
top: 17px;
left: -70;
border-bottom-width: 1px;
right: 0px;
bottom: 200px;
width: 100px;
min-height: 25px;
overflow-y: auto;
overflow-x: auto;
float:right;
border: 5px solid red;
box-sizing: border-box;
} .thumbnail-list:hover { border: 1px solid #777; } .thumbnail-list a img { width: 68px; height: 52px; margin-right: 5px; }
.thumbnail-list div { padding: 10px;
}
@medcornsasa Thanks for the reply. But the issue is actually that the scroll is not working when the cursor is on top of the canvas. It is working only when the cursor is placed on the border line or outside the thumbnail-item node.
I think by default the scroll is being disabled on cornerstone element, but is there any possibility to enable scroll inside cornerstone elements ?
@krishnauppili
You can get around this by adding the css tag pointer-events: none;
to the image element you pass into cornerstone.displayImage(element, image)
.
@krishnauppili I have a porblem when selecting different image from thumbnail to load it to viewer .
I disabled the element using cornerstone.disable(element)
then reenable it using cornerstone.enable(element)
and display it with cornerstone.display(element,image)
.
it didn't work and I get Uncaught (in promise) DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
error
I used the same code of yours so can you help me ?
thanks in advance.
@krishnauppili I have a porblem when selecting different image from thumbnail to load it to viewer . I disabled the element using
cornerstone.disable(element)
then reenable it usingcornerstone.enable(element)
and display it withcornerstone.display(element,image)
. it didn't work and I getUncaught (in promise) DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
error I used the same code of yours so can you help me ? thanks in advance.
I also met·
Hi,
I have used cornerstone js inside my react application and I rendered multiple viewports for series of images with one active element and list of thumbnail elements. The problem is that I'm not able to scroll the thumbnail list which I'm not able to figure out what exactly the reason is. Below is the source code and screenshot of the output. The left pane contains the list of thumbnail elements where the scroll is not working.
Any suggestions would greatly help. Thanks!!
my source code App component