• Hi,

    When DMV DICOM cases are initially loaded using AJAX they do not load with the preset sizes I’ve set in the DicomSupport.php file. When I refresh the page (or view full screen and then exit), however, the DICOM is shown in the correct size. It seem the issue is that the sizes aren’t being recognized on initial page load.

    Do you have any suggestions on how to fix this issue?

    Thank you!

    • This topic was modified 4 years, 11 months ago by fsjones.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ivmartel

    (@ivmartel)

    What modifications did you make to the DicomSupport.php file? You should be able to set sizes via the shortcode with width and height.

    Thread Starter fsjones

    (@fsjones)

    No significant modifications, just setting “large” to 700 px. When I load the DICOM initially (using AJAX) the size info (i.e. 700px) isn’t recognized and the image is small. BUT, if I load it manually after page load (for example, by clicking a tab that loads the DICOM after page load) then the size is correct (i.e. 700 px). Or, if I view the small image in full screen and then exit it displays in the correct size.

    In other words, the size info isn’t being recognized on initial page load. I realize this is a very specific issue relating to my site, but wasn’t sure if you had any suggestions about how to make the size-info recognized on initial page load.

    Thank you.

    Thread Starter fsjones

    (@fsjones)

    Do you know if there is a way to enqueue the $width and $height attributes so they load on page load?

    Thank you.

    Plugin Author ivmartel

    (@ivmartel)

    On the dwv side, it will try to fit the biggest square image in its div. Not sure what is going on when you full-screen and back… I’ll check its code. For the initial load, are you sure there is no other css that prevents dwv / its containing div to get bigger?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with width/height on initial ajax load’ is closed to new replies.