viewport cordinates to local issue

Hello! I have problem with my in world widget component. im using “project world to widget position” function in widget blueprint but the function giving viewports coordinate but beacause of canvas panel is not fit in viewport not giving right coordinates. How can i fix this