CheckBox Indicator Image bug - checkbox

Look at the picture, CheckBox in a RowLayout, set the indicator width a Image,
but with diffrent height setting in CheckBox, it show diffrent
height: 20 (the image top show one more pixel)
Layout.fillHeight:true (Image show correct)
But if checkBox not in RowLayout, use height:20 will show correct image
Anyone know why? thank you

Related

Antd ImgCrop when minZoom below 1 always get cropped like zoom 1

I am using antd imgCrop for cropping image. I want to make the image not cropped when zoom below 1.
The example is below:
When i zoom out like that i want the image have a white space like the screenshot with red border.
original image
but the result my image get cropped
is there a way so my image not getting cropped when zoom below 1? so the output is image with whitespace.
https://codesandbox.io/s/antd-img-crop-forked-x8j16z?file=/src/index.js
Thank you before
I have found the solution by Adding Cropperprops and set restric position to false
<ImgCrop
cropperProps={{ restrictPosition: false }}
>

Thumbnail with checkbox in ng2-pdfjs-viewer

I am using ng2-pdfjs-viewer in sidebar content thumbnail area i want to add checkbox to select particular thumbnail and feature to drag image of thumbnail from top to bottom and bottom to top please let me know if anyone have any idea regarding this implementation

Image Gallery and Dialogue Box using material ui

I have an image gallery which will be displayed as grid, but when i click on that image i need a dialogue box with that image and text fields with image title and author..
here is my code
https://codesandbox.io/s/github/logeshhy/Material-UI-ImageGallery
How about you save the selected tile instead of the boolean whether the dialog is open or not? And if you have a selected tile, you display the content within the dialog?
I modified your sandbox to reflect that: https://codesandbox.io/s/nameless-cache-75sns

Show selected image in ImageViewer

This question is related to my other question at Carousel with thumbnail images at the bottom
I'm trying to implement a similar carousel but only of Images, using ImageViewer and DefaultListModel. When I select a thumbnail image from the bottom carousel, I show corresponding image in the ImageViewer. But what I noticed is that; the list in the ImageViewer doesn't get scrolled to the selected image but the currently displayed image gets replaced with the selected one. The So when I swipe to left or right; the images are different than the original sequence. Following is my code to show the selected image in Imageviewer
imageviewer.setImage(imageviewer.getImageList().getItemAt(selectedImgIndx));
Is there any way to make it behave like a Tab.setSelectedIndex?
Sure, use:
imageviewer.getImageList().setSelectedIndex(idx);

How can I reduce the padding on a Dialog?

When I press a button, my app displays a calendar (within a Dialog) that slides from the bottom of the screen:
I want the Calendar to occupy the whole width of the screen, but it shows some white padding on both sides and also on the top and bottom (It is white because the "Dialog" UIID has a white created image as background)
I have tried changing all the UIID related to Dialog: "Dialog", "DialogBody", "DialogTitle", etc. I set all margins and paddings to cero.
How can I get rid of that padding?
Try change both the DialogUIID and the UIID of the dialog. Also make sure your calendars margin values are set to zero. It could be that your calendar is too small. Try placing it in a table layout with 1 row and 1 column then in layout constraints set the width and height to 100%
Open up the Component Inspector tool and traverse the hierarchy. You will be able to see all the components and their UIID's within the hierarchy and you should be able to understand which one of those components contributes to the padding/margin.

Resources